aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2006-01-31 21:29:04 +0000
committerBill Nottingham <notting@redhat.com>2006-01-31 21:29:04 +0000
commit52e5ac557c6c4aebaa3d93ca13ce262d8ff6d587 (patch)
tree7a6a2d37890495198b3c74ede9cddeef1e714bd1 /rc.d/init.d
parentfff8c1ed26a273b68c2b2c080c6de2d5826cb28c (diff)
downloadinitscripts-52e5ac557c6c4aebaa3d93ca13ce262d8ff6d587.tar
initscripts-52e5ac557c6c4aebaa3d93ca13ce262d8ff6d587.tar.gz
initscripts-52e5ac557c6c4aebaa3d93ca13ce262d8ff6d587.tar.bz2
initscripts-52e5ac557c6c4aebaa3d93ca13ce262d8ff6d587.tar.xz
initscripts-52e5ac557c6c4aebaa3d93ca13ce262d8ff6d587.zip
move halt.local so that it runs before / is remounted r/o (#179314)
Diffstat (limited to 'rc.d/init.d')
-rwxr-xr-xrc.d/init.d/halt8
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"