From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18531 invoked by uid 1002); 13 Jul 2003 00:02:59 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 24679 invoked from network); 13 Jul 2003 00:02:59 -0000 From: "Kurt V. Hindenburg" To: gentoo-dev@gentoo.org Date: Sat, 12 Jul 2003 19:03:33 -0500 User-Agent: KMail/1.5.2 MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_VHKE/0QFSJV/5Fo" Message-Id: <200307121903.33145.khindenburg@cherrynebula.net> Subject: [gentoo-dev] Patch to allow /etc/conf.d/devfsd to control if devfsd is started. X-Archives-Salt: ac1575ae-09cc-4e67-a513-383d34bd7e2f X-Archives-Hash: 3307ab4428b2464d1b69c4b329b8c4f4 --Boundary-00=_VHKE/0QFSJV/5Fo Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Description: clearsigned data Content-Disposition: inline =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 A rather simple patch for /sbin/rc. I would think the 'default' would=20 be to start devfsd as it is now. http://bugs.gentoo.org/show_bug.cgi?id=3D24361 =2D --=20 ^^^ Kurt There is no good nor evil; there is only power. =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/EKHV0cAvx3ELfKARAupiAJ9RA/2JDro7/rr5u82LNVL6VYHxeACfXUEs BBrCHo2m4aEXIgvFudu8woY=3D =3D6bwZ =2D----END PGP SIGNATURE----- --Boundary-00=_VHKE/0QFSJV/5Fo Content-Type: text/x-diff; charset="us-ascii"; name="rc.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="rc.diff" --- rc.orig 2003-07-12 18:22:17.000000000 -0500 +++ rc 2003-07-12 18:21:43.000000000 -0500 @@ -161,9 +161,11 @@ if [ "${devfs}" = "yes" -a -e "/dev/.devfsd" -a \ "${mymounts}" = "yes" ] then - ebegin "Starting devfsd" - /sbin/devfsd /dev > /dev/null - eend $? + if [ "${devfsd}" = "yes" ]; then + ebegin "Starting devfsd" + /sbin/devfsd /dev > /dev/null + eend $? + fi fi # Mount either a ramdisk or tmpfs if requested. @@ -539,8 +541,10 @@ # from runlevel 'single') if [ -z "`ps --no-heading -C 'devfsd'`" -a \ -n "`gawk '/\/dev devfs/ { print }' /proc/mounts 2> /dev/null`" ] -then - /sbin/devfsd /dev &> /dev/null +then + if [ "${devfsd}" = "yes" ]; then + /sbin/devfsd /dev &> /dev/null + fi fi # Runlevel end, so clear stale fail list --Boundary-00=_VHKE/0QFSJV/5Fo Content-Type: text/plain; charset="us-ascii"; name="devfsd" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="devfsd" # Yes to start/use devfsd devfsd="no" #devfsd="yes" --Boundary-00=_VHKE/0QFSJV/5Fo Content-Type: text/plain; charset=us-ascii -- gentoo-dev@gentoo.org mailing list --Boundary-00=_VHKE/0QFSJV/5Fo--