aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrc.d/init.d/halt6
1 files changed, 3 insertions, 3 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt
index 7db1c206..fc463b21 100755
--- a/rc.d/init.d/halt
+++ b/rc.d/init.d/halt
@@ -99,9 +99,7 @@ if [ -x /sbin/raidstop -a -f /etc/raidtab ]; then
#runcmd "Turning off RAID" /sbin/raidstop -a
fi
-[ -d /proc/bus/usb ] && umount /proc/bus/usb
-
-runcmd "Unmounting proc file system" umount /proc
+[ -f /proc/bus/usb/devices ] && umount /proc/bus/usb
# Remount read only anything that's left mounted.
#echo "Remounting remaining filesystems (if any) readonly"
@@ -109,6 +107,8 @@ mount | awk '/ext2/ { print $3 }' | while read line; do
mount -n -o ro,remount $line
done
+runcmd "Unmounting proc file system" umount /proc
+
# Now halt or reboot.
echo "$message"
if [ -f /fastboot ]; then