summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/init-ifupdown
diff options
context:
space:
mode:
authorChen Qi <qi.chen@windriver.com>2013-11-11 17:26:09 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-20 14:02:52 +0000
commitf12e1291b51ba6692b6809570d6a9b73c70a7fe9 (patch)
treef9d55b315211d46d720643fb0b8b1720a8f45901 /meta/recipes-core/init-ifupdown
parent9982f9836f06b1a9282d657ee249eb08261518cb (diff)
downloadopenembedded-core-contrib-f12e1291b51ba6692b6809570d6a9b73c70a7fe9.tar.gz
sysvinit: fix problem in switching runlevels
Previously, if we switch to runlevel 1 and then switch back to runlevel 5, the network interface will be brought down and the NFS service will not be restarted correctly. The problem is that the networking and rpcbind services are brought down in runlevel 1 but not brought up in runlevel 5. This patch fixes the above problem. It's based on the assumption that in sysvinit-based system, runlevel 1 does not have networking support. This patch adjusts some init script parameters used by update-rc.d. It makes sure that networking starts before rpcbind which in turn starts before mountnfs.sh. When switching to runlevel 0, 1 and 6, the umountnfs.sh is run first before stopping rpcbind service, and the network is brought down afterwards. [YOCTO #5513] Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-core/init-ifupdown')
-rw-r--r--meta/recipes-core/init-ifupdown/init-ifupdown_1.0.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/init-ifupdown/init-ifupdown_1.0.bb b/meta/recipes-core/init-ifupdown/init-ifupdown_1.0.bb
index 9d3af34717c..0f4290c7c38 100644
--- a/meta/recipes-core/init-ifupdown/init-ifupdown_1.0.bb
+++ b/meta/recipes-core/init-ifupdown/init-ifupdown_1.0.bb
@@ -9,7 +9,7 @@ PR = "r3"
inherit update-rc.d
INITSCRIPT_NAME = "networking"
-INITSCRIPT_PARAMS = "start 40 S . stop 40 0 6 1 ."
+INITSCRIPT_PARAMS = "start 10 2 3 4 5 . stop 80 0 6 1 ."
SRC_URI = "file://copyright \
file://init \