From 3792e9cf4b63d57050c883b3d5164ff5e34ccf0a Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 5 Jul 2018 04:43:10 +0300 Subject: add reboot/shutdown buttons --- cgi-bin/poweroff.sh | 5 +++++ cgi-bin/reboot.sh | 5 +++++ index.html | 20 +++++++++++++++++++- 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100755 cgi-bin/poweroff.sh create mode 100755 cgi-bin/reboot.sh 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 diff --git a/cgi-bin/reboot.sh b/cgi-bin/reboot.sh new file mode 100755 index 0000000..b8bb350 --- /dev/null +++ b/cgi-bin/reboot.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +set -o errexit -o nounset -o pipefail + +systemctl reboot diff --git a/index.html b/index.html index cb516ec..cb0a1b8 100644 --- a/index.html +++ b/index.html @@ -13,7 +13,7 @@ .button-expand { margin-right: 1em; } -h1 { +h1, .h1 { margin-top: 20px; } @@ -23,6 +23,16 @@ h1 {

-

+
+
+ +
+
+
+

top updated every - seconds

@@ -56,6 +66,14 @@ h1 {