From 4c5132421f37bd6831eab1f9527a197340f2e9ae Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Mon, 20 Apr 2015 10:59:47 -0500 Subject: [PATCH] procfs: remove usbfs and usbdevfs support The usbfs and usbdevfs file systems have been deprecated since Linux-2.6.32, so we remove the code to automount them. X-Gentoo-Bug: 480312 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=480312 --- init.d/procfs.in | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/init.d/procfs.in b/init.d/procfs.in index ae6c8596..24dbfaf0 100644 --- a/init.d/procfs.in +++ b/init.d/procfs.in @@ -39,22 +39,5 @@ start() fi fi - # Check what USB fs the kernel support. Currently - # 2.5+ kernels, and later 2.4 kernels have 'usbfs', - # while older kernels have 'usbdevfs'. - if [ -d /proc/bus/usb -a ! -e /proc/bus/usb/devices ]; then - local usbfs=$(grep -Fow usbfs /proc/filesystems || - grep -Fow usbdevfs /proc/filesystems) - if [ -n "$usbfs" ]; then - ebegin "Mounting USB device filesystem [$usbfs]" - local usbgid="$(getent group usb | \ - sed -e 's/.*:.*:\(.*\):.*/\1/')" - mount -t $usbfs \ - -o ${usbgid:+devmode=0664,devgid=$usbgid,}noexec,nosuid \ - usbfs /proc/bus/usb - eend $? - fi - fi - return 0 }