diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2015-04-20 10:59:47 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2015-04-20 10:59:47 -0500 |
commit | 4c5132421f37bd6831eab1f9527a197340f2e9ae (patch) | |
tree | 1120dcd6b21eaf9f5945414df760a45804d48aae /init.d | |
parent | 6d81d3be1bcba81a68086f2a17561d13e1f844e6 (diff) |
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
Diffstat (limited to 'init.d')
-rw-r--r-- | init.d/procfs.in | 17 |
1 files changed, 0 insertions, 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 } |