summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <uberlord@gentoo.org>2006-05-02 13:10:33 +0000
committerRoy Marples <uberlord@gentoo.org>2006-05-02 13:10:33 +0000
commitbe3f55104f00e28b5ba033445451156f9f6ba1eb (patch)
treecfdbfffe3bcc99a4b5635150c7a34b46cf7e5548 /sys-apps/baselayout/files/baselayout-1.11.15-coldplug.patch
parentMarked ppc stable for bug #127003. (diff)
downloadhistorical-be3f55104f00e28b5ba033445451156f9f6ba1eb.tar.gz
historical-be3f55104f00e28b5ba033445451156f9f6ba1eb.tar.bz2
historical-be3f55104f00e28b5ba033445451156f9f6ba1eb.zip
RC_COLDPLUG is now a pure pattern list which defaults to "*"
Package-Manager: portage-2.1_pre10-r2
Diffstat (limited to 'sys-apps/baselayout/files/baselayout-1.11.15-coldplug.patch')
-rw-r--r--sys-apps/baselayout/files/baselayout-1.11.15-coldplug.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/sys-apps/baselayout/files/baselayout-1.11.15-coldplug.patch b/sys-apps/baselayout/files/baselayout-1.11.15-coldplug.patch
new file mode 100644
index 000000000000..f91896c0d2b3
--- /dev/null
+++ b/sys-apps/baselayout/files/baselayout-1.11.15-coldplug.patch
@@ -0,0 +1,45 @@
+Index: etc/conf.d/rc
+===================================================================
+--- etc/conf.d/rc (revision 2021)
++++ etc/conf.d/rc (working copy)
+@@ -12,14 +12,13 @@
+
+ # Dynamic /dev managers can trigger coldplug events which cause services to
+ # start before we are ready for them. If this happens, we can defer these
+-# services to start in the boot runlevel. If you don't want this then set
+-# RC_COLDPLUG to no.
+-# For more fine grained control you can list full service names to allow
+-# them to coldplug and prefix them with ! so they don't coldplug.
+-# Example - RC_COLDPLUG="net.wlan !net.*"
++# services to start in the boot runlevel. RC_COLDPLUG is a list of services we
++# allow to be coldplugged in this way. Globbing is allowed as is prefixing
++# with ! which means don't coldplug.
++# Example - RC_COLDPLUG="net.wlan !net.* *"
+ # This allows net.wlan and any service not matching net.* to coldplug.
+
+-RC_COLDPLUG="yes"
++RC_COLDPLUG="*"
+
+ # RC_NET_STRICT_CHECKING allows some flexibility with the 'net' service.
+ # The following values are allowed:
+Index: sbin/runscript.sh
+===================================================================
+--- sbin/runscript.sh (revision 2021)
++++ sbin/runscript.sh (working copy)
+@@ -34,13 +34,14 @@
+ # until after rc sysinit has completed so we punt them to the boot runlevel
+ if [[ -e /dev/.rcsysinit ]] ; then
+ eerror "ERROR: cannot run ${SVCNAME} until sysinit completes"
+- [[ ${RC_COLDPLUG} == "no" ]] && exit 1
+- if [[ ${RC_COLDPLUG} != "yes" ]] ; then
++ [[ "${RC_COLDPLUG} " == "!* "* ]] && exit 1
++ if [[ "${RC_COLDPLUG} " != "* "* ]] ; then
+ for x in ${RC_COLDPLUG} ; do
+ # We don't quote ${x} so we can do globbing
+ [[ ${SVCNAME} == ${x} ]] && break
+ [[ "!${SVCNAME}" == ${x} ]] && exit 1
+ done
++ [[ ${SVCNAME} == ${x} ]] || exit 1
+ fi
+ eerror "${SVCNAME} will be started in the ${BOOTLEVEL} runlevel"
+ if [[ ! -L /dev/.rcboot/"${SVCNAME}" ]] ; then