aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-08-24 16:21:07 +0000
committerBill Nottingham <notting@redhat.com>2001-08-24 16:21:07 +0000
commit2cb398321921a4a3ca739407d246204adfc86c46 (patch)
treeaa0e066b120b14d04875426902fccf95c40dc4e3 /rc.d/init.d
parent5138d75608cb30d4395a4e58c5e8afbec87622f7 (diff)
downloadinitscripts-2cb398321921a4a3ca739407d246204adfc86c46.tar
initscripts-2cb398321921a4a3ca739407d246204adfc86c46.tar.gz
initscripts-2cb398321921a4a3ca739407d246204adfc86c46.tar.bz2
initscripts-2cb398321921a4a3ca739407d246204adfc86c46.tar.xz
initscripts-2cb398321921a4a3ca739407d246204adfc86c46.zip
sort output of halt_get_remaining (#52180)
Diffstat (limited to 'rc.d/init.d')
-rwxr-xr-xrc.d/init.d/halt4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt
index cfed164a..165a86eb 100755
--- a/rc.d/init.d/halt
+++ b/rc.d/init.d/halt
@@ -153,7 +153,7 @@ remaining=`awk '!/^#/ && $1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/moun
sig=
retry=3
-remaining=`halt_get_remaining`
+remaining=`halt_get_remaining | sort -r`
while [ -n "$remaining" -a "$retry" -gt 0 ]
do
@@ -163,7 +163,7 @@ do
LANG=C runcmd $"Unmounting file systems: " umount -f $remaining
fi
sleep 2
- remaining=`halt_get_remaining`
+ remaining=`halt_get_remaining | sort -r`
[ -z "$remaining" ] && break
/sbin/fuser -k -m $sig $remaining >/dev/null
sleep 5