aboutsummaryrefslogtreecommitdiff
path: root/personal/shinit/files
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-06-19 01:47:44 +0300
committerCem Keylan <cem@ckyln.com>2020-06-19 01:47:44 +0300
commit706c708b5aac148cd323a7f6b40513ba756ef45e (patch)
tree2a9c963283378af3c7e04ba2e4683ccbd220b978 /personal/shinit/files
parentc05ab7845f241547ab8607a91db1942617bc3d4e (diff)
downloadrepository-706c708b5aac148cd323a7f6b40513ba756ef45e.tar.gz
move to personal
Diffstat (limited to 'personal/shinit/files')
-rwxr-xr-xpersonal/shinit/files/poweroff3
1 files changed, 3 insertions, 0 deletions
diff --git a/personal/shinit/files/poweroff b/personal/shinit/files/poweroff
new file mode 100755
index 0000000..454cfa7
--- /dev/null
+++ b/personal/shinit/files/poweroff
@@ -0,0 +1,3 @@
+#!/bin/bash
+[ "$(id -u)" -eq 0 ] || exit 1
+/lib/init/rc.shutdown ${0##*/} & disown