From 5b521afd5d7528879d4650961642ee776ab8204c Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 14 Jul 2014 14:48:58 +0200 Subject: [PATCH] init-ifupdown: Make the script runnable in rc2.d as well systemd doesn't look in /etc/rcS.d for init scripts so we never start networking unless we are using ifplugd. We need to check how this behves on the sysmobts and sysmobsc in case the network is being started twice. --- recipes-bsp/netbase/init-ifupdown_sysmocom.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/recipes-bsp/netbase/init-ifupdown_sysmocom.inc b/recipes-bsp/netbase/init-ifupdown_sysmocom.inc index aad59f8..257be4c 100644 --- a/recipes-bsp/netbase/init-ifupdown_sysmocom.inc +++ b/recipes-bsp/netbase/init-ifupdown_sysmocom.inc @@ -1,6 +1,8 @@ # TODO: When dropping netbase for edison we can rename it SYSMOCOM := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" FILESEXTRAPATHS_prepend := "${SYSMOCOM}/netbase-${PV}:${SYSMOCOM}/netbase:" -PRINC = "2" - +PRINC = "3" +# systemd does not look at /etc/rcS.d for the script. Make sure +# there is a symlink available +INITSCRIPT_PARAMS = "start 40 S 2 . stop 40 0 6 1 ."