aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Powalowski <tpowa@archlinux.org>2006-07-07 15:17:34 +0000
committerTobias Powalowski <tpowa@archlinux.org>2006-07-07 15:17:34 +0000
commit8d214daab85c043f87ed21912b68172cc0e33635 (patch)
tree7a9c8ff718cea2b44af5d975d9db3fb1564f4472
parent93ba858cb8f3684506bcc5854ce32b637e108d00 (diff)
downloadinitscripts-8d214daab85c043f87ed21912b68172cc0e33635.tar.xz
'upgpkg: fixed usbfs mounting again'
-rwxr-xr-xrc.sysinit8
1 files changed, 7 insertions, 1 deletions
diff --git a/rc.sysinit b/rc.sysinit
index f647f00..29b3f77 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -23,6 +23,10 @@ printsep
mount -n -t proc none /proc
[ "`grep sysfs /proc/filesystems`" ] && mount -n -t sysfs none /sys
+# mount usbfs
+/sbin/modprobe usbcore >/dev/null 2>&1
+[ "`grep usbfs /proc/filesystems`" ] && mount -n -t usbfs none /proc/bus/usb
+
if [ -x /etc/start_udev -a -d /sys/block ]; then
# We have a start_udev script and /sys appears to be mounted, use UDev
status "Starting UDev Daemon" /etc/start_udev init
@@ -161,9 +165,11 @@ stat_busy "Mounting Local Filesystems"
/bin/rm -f /etc/mtab*
# make sure / gets written to /etc/mtab
/bin/mount -o remount,rw /
-# re-mount /proc and /sys so they can be written to /etc/mtab
+# re-mount /proc , /sys and usbfs so they can be written to /etc/mtab
+umount /proc/bus/usb
umount /proc && mount -t proc none /proc
[ "`grep sysfs /proc/filesystems`" ] && umount /sys && mount -t sysfs none /sys
+[ "`grep usbfs /proc/filesystems`" ] && mount -t usbfs none /proc/bus/usb
# now mount all the local filesystems
/bin/mount -a -t nonfs,nosmbfs,nocifs,noncpfs,nosysfs,nousbfs
stat_done