aboutsummaryrefslogtreecommitdiff
path: root/cem/shinit/files/poweroff
diff options
context:
space:
mode:
Diffstat (limited to 'cem/shinit/files/poweroff')
-rwxr-xr-xcem/shinit/files/poweroff3
1 files changed, 3 insertions, 0 deletions
diff --git a/cem/shinit/files/poweroff b/cem/shinit/files/poweroff
new file mode 100755
index 0000000..454cfa7
--- /dev/null
+++ b/cem/shinit/files/poweroff
@@ -0,0 +1,3 @@
+#!/bin/bash
+[ "$(id -u)" -eq 0 ] || exit 1
+/lib/init/rc.shutdown ${0##*/} & disown