summary refs log tree commit diff
path: root/contrib/rvnit/00Kpoweroff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2022-01-07 16:47:27 +0100
committerLeah Neukirchen <leah@vuxu.org>2022-01-07 16:47:27 +0100
commit366c535d93aa3a8ad44f56ca1e024bb9e26bf11c (patch)
treeda84175606693b181e6ffa9e1b7492f16948b121 /contrib/rvnit/00Kpoweroff
parent460803f3c3740e076f6db8d56f900b6a53f5ef8f (diff)
downloadrvnit-366c535d93aa3a8ad44f56ca1e024bb9e26bf11c.tar.gz
rvnit-366c535d93aa3a8ad44f56ca1e024bb9e26bf11c.tar.xz
rvnit-366c535d93aa3a8ad44f56ca1e024bb9e26bf11c.zip
contrib: update
Diffstat (limited to 'contrib/rvnit/00Kpoweroff')
-rwxr-xr-xcontrib/rvnit/00Kpoweroff11
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/rvnit/00Kpoweroff b/contrib/rvnit/00Kpoweroff
new file mode 100755
index 0000000..2fae082
--- /dev/null
+++ b/contrib/rvnit/00Kpoweroff
@@ -0,0 +1,11 @@
+#!/bin/sh
+echo system halted.
+sync
+
+sleep 10
+
+if [ -n "$RVNIT_WANT_REBOOT" ]; then
+	reboot -f
+else
+	halt -f
+fi