aboutsummaryrefslogtreecommitdiff
path: root/shinit/files/poweroff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-05-08 13:09:52 +0300
committerCem Keylan <cem@ckyln.com>2020-05-08 13:09:52 +0300
commit67596087b9654e7503e55d59dd6b7d60c86ea359 (patch)
tree1715cd241d9e8cea5d30ff21fb205f1169a384dd /shinit/files/poweroff
parentc09b827a5f1d8b26bb172988e7311b9893b48a24 (diff)
downloadrepository-67596087b9654e7503e55d59dd6b7d60c86ea359.tar.gz
move out of the 'cem' directory
Diffstat (limited to 'shinit/files/poweroff')
-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