aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-10-30 15:03:12 +0000
committerRoy Marples <roy@marples.name>2008-10-30 15:03:12 +0000
commit1c73f2967ca802c442824672eb3e31c19826fc4e (patch)
tree81d4af1f35dbe3c604f2663572a355afeed97afc
parent2ff0838abb427181ca7cd21abf0cbf4340c3ccae (diff)
We no longer hotplug by default.
-rw-r--r--etc/rc.conf.in8
-rw-r--r--src/rc/runscript.c2
2 files changed, 6 insertions, 4 deletions
diff --git a/etc/rc.conf.in b/etc/rc.conf.in
index 3c3ed1b3..1bb3b27c 100644
--- a/etc/rc.conf.in
+++ b/etc/rc.conf.in
@@ -22,15 +22,17 @@ rc_interactive="YES"
# come up.
rc_depend_strict="YES"
-# rc_hotplug is a list of services that we allow to be hotplugged,
-# by default allow all.
+# rc_hotplug is a list of services that we allow to be hotplugged.
+# By default we do not allow hotplugging.
# A hotplugged service is one started by a dynamic dev manager when a matching
# hardware device is found.
# This service is intrinsically included in the boot runlevel.
# To disable services, prefix with a !
# Example - rc_hotplug="net.wlan !net.*"
# This allows net.wlan and any service not matching net.* to be plugged.
-rc_hotplug="*"
+# Example - rc_hotplug="*"
+# This allows all services to be hotplugged
+#rc_hotplug="*"
# rc_logger launches a logging daemon to log the entire rc process to
# /var/log/rc.log
diff --git a/src/rc/runscript.c b/src/rc/runscript.c
index 0b34d854..4fc12bfe 100644
--- a/src/rc/runscript.c
+++ b/src/rc/runscript.c
@@ -1111,7 +1111,7 @@ service_plugable(void)
if (!match)
match = rc_conf_value("rc_plug_services");
if (!match)
- return true;
+ return false;
list = xstrdup(match);
p = list;