From 52e5ac557c6c4aebaa3d93ca13ce262d8ff6d587 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 31 Jan 2006 21:29:04 +0000 Subject: move halt.local so that it runs before / is remounted r/o (#179314) --- rc.d/init.d/halt | 8 ++++---- 1 file 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" -- cgit v1.2.1