aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2000-07-25 06:35:26 +0000
committerBill Nottingham <notting@redhat.com>2000-07-25 06:35:26 +0000
commit4293571c11d68f9622c20ccaedde5e4f7d2e9300 (patch)
tree339b72f5141cd01a06b793cd9c520b8984acce13 /rc.d
parent6f4831def652759ede8fbcb69e08ccf813b92df2 (diff)
downloadinitscripts-4293571c11d68f9622c20ccaedde5e4f7d2e9300.tar
initscripts-4293571c11d68f9622c20ccaedde5e4f7d2e9300.tar.gz
initscripts-4293571c11d68f9622c20ccaedde5e4f7d2e9300.tar.bz2
initscripts-4293571c11d68f9622c20ccaedde5e4f7d2e9300.tar.xz
initscripts-4293571c11d68f9622c20ccaedde5e4f7d2e9300.zip
unmount usb filesystem on shutdown
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/init.d/halt2
1 files changed, 2 insertions, 0 deletions
diff --git a/rc.d/init.d/halt b/rc.d/init.d/halt
index 22f008c9..7db1c206 100755
--- a/rc.d/init.d/halt
+++ b/rc.d/init.d/halt
@@ -99,6 +99,8 @@ 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
# Remount read only anything that's left mounted.