From 7b63c0ef78528a50b6733a2e9d6250d223c7ed43 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 26 Jul 2000 14:20:01 +0000 Subject: fix unclean shutdown --- rc.d/init.d/halt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rc.d/init.d/halt') 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 -- cgit v1.2.1