aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/halt
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-04-15 20:01:18 +0000
committerBill Nottingham <notting@redhat.com>2005-04-15 20:01:18 +0000
commit40412b28028ff453d6350f96a4e7efab3a3b0342 (patch)
tree2ba726cfafa315a68443bfc66334c1e3bf8ed546 /rc.d/init.d/halt
parent65b79521dbeb506c69a9d43b5d6e612fd1486a2f (diff)
downloadinitscripts-40412b28028ff453d6350f96a4e7efab3a3b0342.tar
initscripts-40412b28028ff453d6350f96a4e7efab3a3b0342.tar.gz
initscripts-40412b28028ff453d6350f96a4e7efab3a3b0342.tar.bz2
initscripts-40412b28028ff453d6350f96a4e7efab3a3b0342.tar.xz
initscripts-40412b28028ff453d6350f96a4e7efab3a3b0342.zip
reverse sort the mount list, avoiding errors (#147254, <jamesodhunt@hotmail.com>)
Diffstat (limited to 'rc.d/init.d/halt')
-rwxr-xr-xrc.d/init.d/halt2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt
index ba25911d..55083d7c 100755
--- a/rc.d/init.d/halt
+++ b/rc.d/init.d/halt
@@ -199,7 +199,7 @@ done
rm -f /.autofsck
# Try all file systems other than root and RAM disks, one last time.
-mount | awk '!/( \/ |^\/dev\/root|^\/dev\/ram| \/proc )/ { print $3 }' | \
+mount | awk '!/( \/ |^\/dev\/root|^\/dev\/ram| \/proc )/ { print $3 }' | sort -r \
while read line; do
umount -f $line
done