From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id ED2D5138CA2 for ; Mon, 20 Apr 2015 16:39:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0C911E0853; Mon, 20 Apr 2015 16:39:11 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7C391E0853 for ; Mon, 20 Apr 2015 16:39:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BF75F340C44 for ; Mon, 20 Apr 2015 16:39:09 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5362B16588 for ; Mon, 20 Apr 2015 16:39:06 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1429545587.4c5132421f37bd6831eab1f9527a197340f2e9ae.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: init.d/ X-VCS-Repository: proj/openrc X-VCS-Files: init.d/procfs.in X-VCS-Directories: init.d/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 4c5132421f37bd6831eab1f9527a197340f2e9ae X-VCS-Branch: master Date: Mon, 20 Apr 2015 16:39:06 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: ff8c35db-0b3f-4bcb-93a4-3e4ac620a590 X-Archives-Hash: eeeaf0e6c68e5395fc6bbb4e7025200c commit: 4c5132421f37bd6831eab1f9527a197340f2e9ae Author: William Hubbs gmail com> AuthorDate: Mon Apr 20 15:59:47 2015 +0000 Commit: William Hubbs gentoo 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 }