diff options
author | Tobias Powalowski <tpowa@archlinux.org> | 2006-07-07 15:17:34 +0000 |
---|---|---|
committer | Tobias Powalowski <tpowa@archlinux.org> | 2006-07-07 15:17:34 +0000 |
commit | 8d214daab85c043f87ed21912b68172cc0e33635 (patch) | |
tree | 7a9c8ff718cea2b44af5d975d9db3fb1564f4472 | |
parent | 93ba858cb8f3684506bcc5854ce32b637e108d00 (diff) | |
download | initscripts-8d214daab85c043f87ed21912b68172cc0e33635.tar.xz |
'upgpkg: fixed usbfs mounting again'
-rwxr-xr-x | rc.sysinit | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |