aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cgi-bin/poweroff.sh
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2018-07-05 04:43:10 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2018-07-05 04:43:10 +0300
commit3792e9cf4b63d57050c883b3d5164ff5e34ccf0a (patch)
tree654662053656fecd7d49be673d39259e47e63955 /cgi-bin/poweroff.sh
parentcode style (diff)
downloadlinux-status-3792e9cf4b63d57050c883b3d5164ff5e34ccf0a.tar.gz
linux-status-3792e9cf4b63d57050c883b3d5164ff5e34ccf0a.zip
add reboot/shutdown buttons
Diffstat (limited to '')
-rwxr-xr-xcgi-bin/poweroff.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/cgi-bin/poweroff.sh b/cgi-bin/poweroff.sh
new file mode 100755
index 0000000..d0df856
--- /dev/null
+++ b/cgi-bin/poweroff.sh
@@ -0,0 +1,5 @@
+#!/usr/bin/env bash
+
+set -o errexit -o nounset -o pipefail
+
+systemctl poweroff