diff options
Diffstat (limited to 'contrib/rvnit/00Kpoweroff')
-rwxr-xr-x | contrib/rvnit/00Kpoweroff | 11 |
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 |