commit: 4c5132421f37bd6831eab1f9527a197340f2e9ae Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com> AuthorDate: Mon Apr 20 15:59:47 2015 +0000 Commit: William Hubbs <williamh <AT> gentoo <DOT> org> CommitDate: Mon Apr 20 15:59:47 2015 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=4c513242
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 ae6c859..24dbfaf 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 }
