From ac56ab7f6df616a7a40878b59f647b8042108def Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Sun, 17 Apr 2011 09:12:20 -0400 Subject: [PATCH] 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 --- init.d/procfs.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.d/procfs.in b/init.d/procfs.in index c5331b8c..049fade6 100644 --- a/init.d/procfs.in +++ b/init.d/procfs.in @@ -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