* [gentoo-dev] Patch to allow /etc/conf.d/devfsd to control if devfsd is started.
@ 2003-07-13 0:03 Kurt V. Hindenburg
0 siblings, 0 replies; only message in thread
From: Kurt V. Hindenburg @ 2003-07-13 0:03 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: clearsigned data --]
[-- Type: Text/Plain, Size: 471 bytes --]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
A rather simple patch for /sbin/rc. I would think the 'default' would
be to start devfsd as it is now.
http://bugs.gentoo.org/show_bug.cgi?id=24361
- --
^^^ Kurt
There is no good nor evil; there is only power.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/EKHV0cAvx3ELfKARAupiAJ9RA/2JDro7/rr5u82LNVL6VYHxeACfXUEs
BBrCHo2m4aEXIgvFudu8woY=
=6bwZ
-----END PGP SIGNATURE-----
[-- Attachment #2: rc.diff --]
[-- Type: text/x-diff, Size: 782 bytes --]
--- 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
[-- Attachment #3: devfsd --]
[-- Type: text/plain, Size: 53 bytes --]
# Yes to start/use devfsd
devfsd="no"
#devfsd="yes"
[-- Attachment #4: Type: text/plain, Size: 37 bytes --]
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-07-13 0:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-13 0:03 [gentoo-dev] Patch to allow /etc/conf.d/devfsd to control if devfsd is started Kurt V. Hindenburg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox