Check for /sys/module/usbcore before modprobe usbcore
The use of /proc/bus/usb to mount usbfs has been deprecated, but the option is still available in the kernel. The new approach is to use /sys. We should not modprobe usbcore if either /proc/bus/usb or /sys/module/usbcore exist. X-Gentoo-Bug: 363551 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=363551 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
This commit is contained in:
parent
ad8f455726
commit
ac56ab7f6d
@ -14,7 +14,7 @@ depend()
|
||||
start()
|
||||
{
|
||||
# Make sure we insert usbcore if it's a module
|
||||
if [ -f /proc/modules -a ! -d /proc/bus/usb ]; then
|
||||
if [ -f /proc/modules -a ! -d /sys/module/usbcore -a ! -d /proc/bus/usb ]; then
|
||||
modprobe -q usbcore
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user