From: "Kurt V. Hindenburg" <khindenburg@cherrynebula.net>
To: gentoo-dev@gentoo.org
Subject: [gentoo-dev] Patch to allow /etc/conf.d/devfsd to control if devfsd is started.
Date: Sat, 12 Jul 2003 19:03:33 -0500 [thread overview]
Message-ID: <200307121903.33145.khindenburg@cherrynebula.net> (raw)
[-- 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
reply other threads:[~2003-07-13 0:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200307121903.33145.khindenburg@cherrynebula.net \
--to=khindenburg@cherrynebula.net \
--cc=gentoo-dev@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox