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