diff options
Diffstat (limited to 'rc.d/init.d/halt')
-rwxr-xr-x | rc.d/init.d/halt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt index 857db62d..36263c7c 100755 --- a/rc.d/init.d/halt +++ b/rc.d/init.d/halt @@ -116,4 +116,10 @@ if [ -f /fastboot ]; then elif [ -f /forcefsck ]; then echo "On the next boot fsck will be forced." fi -eval $command -i -d -p + +HALTARGS="-i -d" +if [ -f /poweroff -o ! -f /halt]; then + HALTARGS="$HALTARGS -p" +fi + +eval $command $HALTARGS |