aboutsummaryrefslogtreecommitdiff
path: root/core/sinit/files
diff options
context:
space:
mode:
Diffstat (limited to 'core/sinit/files')
-rw-r--r--core/sinit/files/sinit.post.shutdown2
-rw-r--r--core/sinit/files/sinit.pre.shutdown10
2 files changed, 1 insertions, 11 deletions
diff --git a/core/sinit/files/sinit.post.shutdown b/core/sinit/files/sinit.post.shutdown
index 16deba74..ade9958f 100644
--- a/core/sinit/files/sinit.post.shutdown
+++ b/core/sinit/files/sinit.post.shutdown
@@ -8,7 +8,7 @@ if [ "$SINIT_SHUTDOWN_HOOKS" = 1 ]; then
out "Requesting system reboot..."
/usr/bin/ubase-box halt -r
;;
- poweroff)
+ *)
out "Requesting system poweroff..."
/usr/bin/ubase-box halt -p
;;
diff --git a/core/sinit/files/sinit.pre.shutdown b/core/sinit/files/sinit.pre.shutdown
deleted file mode 100644
index af0d6f4f..00000000
--- a/core/sinit/files/sinit.pre.shutdown
+++ /dev/null
@@ -1,10 +0,0 @@
-if [ "$SINIT_SHUTDOWN_HOOKS" = 1 ]; then
- case "$1" in
- reboot|poweroff)
- ;;
- *)
- echo "Invalid action '$1' for rc.shutdown" 1>&2
- exit 1
- ;;
- esac
-fi