aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-01-18 10:04:21 +0000
committerRoy Marples <roy@marples.name>2008-01-18 10:04:21 +0000
commit862e07c8fd020a446f92c544184c16bf9f465d1b (patch)
tree4d5c5ba787f729eab81f3e3465bda80fff5b6652
parentc6774d1c74baaf62827e82967ff62bb843854477 (diff)
rc_coldplug=no really stops all coldplug events
-rwxr-xr-xsh.Linux/init.sh4
-rw-r--r--src/rc/rc.c1
2 files changed, 3 insertions, 2 deletions
diff --git a/sh.Linux/init.sh b/sh.Linux/init.sh
index 1be9b4af..631b6c4a 100755
--- a/sh.Linux/init.sh
+++ b/sh.Linux/init.sh
@@ -120,9 +120,9 @@ mount_svcdir()
# Compat shim for udev
rc_coldplug=${rc_coldplug:-${RC_COLDPLUG:-yes}}
if yesno "${rc_coldplug}"; then
- RC_COLDPLUG=yes
+ RC_COLDPLUG=YES
else
- RC_COLDPLUG=no
+ RC_COLDPLUG=NO
fi
# Set the console loglevel to 1 for a cleaner boot
diff --git a/src/rc/rc.c b/src/rc/rc.c
index 8a000bdb..e6884154 100644
--- a/src/rc/rc.c
+++ b/src/rc/rc.c
@@ -839,6 +839,7 @@ int main (int argc, char **argv)
continue;
if (rc_service_exists (d->d_name) &&
+ rc_conf_yesno ("rc_coldplug") &&
service_plugable (d->d_name))
rc_service_mark (d->d_name, RC_SERVICE_COLDPLUGGED);