diff options
Diffstat (limited to 'abs/core/poweroff-scripts/reboot.script')
-rwxr-xr-x[-rw-r--r--] | abs/core/poweroff-scripts/reboot.script | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/abs/core/poweroff-scripts/reboot.script b/abs/core/poweroff-scripts/reboot.script index 47ad99e..f1d4c3f 100644..100755 --- a/abs/core/poweroff-scripts/reboot.script +++ b/abs/core/poweroff-scripts/reboot.script @@ -2,11 +2,16 @@ MYTH_RUN_STATUS="1" . /etc/profile INIT=`ps -p 1 -o comm=` -chvt 1 + +#ignore -d option +if [ x$1 = x-d ] +then + exit 0 +fi + if [ x$INIT = xrunit ] then - /sbin/reboot-runit $@ + shutdown -r else - /sbin/reboot.init $@ + systemctl reboot $@ fi - |