summaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorRoman Kyrylych <roman@archlinux.org>2008-03-01 00:04:01 +0200
committerRoman Kyrylych <roman@archlinux.org>2008-03-01 00:04:01 +0200
commit1b5eeefa5a859a9c26a717603bd4c0e9fb74de82 (patch)
tree2c881cf1b9a9273924618b5430468c5e5168aeac /rc.sysinit
parent4d0920ede7ce9c3d67e03c67b9ee584cf1a3fe9d (diff)
Do not mount /proc/bus/usb if commented in fstab
Fixes FS#9451 Signed-off-by: Roman Kyrylych <roman@archlinux.org>
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.sysinit b/rc.sysinit
index 1dae885..f331ffd 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -303,7 +303,7 @@ if [ -e /proc/mounts ]; then
fi
if grep -qw usbfs /proc/filesystems; then
# Some people use custom permissions for their usbfs
- if grep -qw /proc/bus/usb /etc/fstab; then
+ if grep -v "^#" /etc/fstab | grep -qw /proc/bus/usb ; then
mount /proc/bus/usb
else
mount -t usbfs none /proc/bus/usb