diff options
Diffstat (limited to 'rc.d/init.d/halt')
-rwxr-xr-x | rc.d/init.d/halt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt index 41f8ae77..0afe13b4 100755 --- a/rc.d/init.d/halt +++ b/rc.d/init.d/halt @@ -204,6 +204,10 @@ mount | awk '!/( \/ |^\/dev\/root|^\/dev\/ram| \/proc )/ { print $3 }' | sort - umount -f $line done +if [ -x /sbin/halt.local ]; then + /sbin/halt.local +fi + # Remount read only anything that's left mounted. # echo $"Remounting remaining filesystems readonly" mount | awk '{ print $3 }' | while read line; do @@ -227,10 +231,6 @@ if [ "$command" = /sbin/halt -a -r /etc/ups/upsmon.conf -a -f /etc/killpower -a fi fi -if [ -x /sbin/halt.local ]; then - /sbin/halt.local -fi - HALTARGS="-i -d" [ -f /poweroff -o ! -f /halt ] && HALTARGS="$HALTARGS -p" |