summary refs log tree commit diff
path: root/contrib/rvnit/sv/00Kpoweroff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2022-01-07 01:02:22 +0100
committerLeah Neukirchen <leah@vuxu.org>2022-01-07 01:02:22 +0100
commit07ba00058350948a8a5e89aa312c6f5b12098d93 (patch)
treed07d8185e2a026f588146cf17e26648fc486222e /contrib/rvnit/sv/00Kpoweroff
parent5f76e13946b91213cae66d423a90a27eda24dc1a (diff)
downloadrvnit-07ba00058350948a8a5e89aa312c6f5b12098d93.tar.gz
rvnit-07ba00058350948a8a5e89aa312c6f5b12098d93.tar.xz
rvnit-07ba00058350948a8a5e89aa312c6f5b12098d93.zip
add contrib
Diffstat (limited to 'contrib/rvnit/sv/00Kpoweroff')
-rwxr-xr-xcontrib/rvnit/sv/00Kpoweroff11
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/rvnit/sv/00Kpoweroff b/contrib/rvnit/sv/00Kpoweroff
new file mode 100755
index 0000000..2fae082
--- /dev/null
+++ b/contrib/rvnit/sv/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