summary refs log tree commit diff
path: root/contrib/rvnit/00Kpoweroff
diff options
context:
space:
mode:
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