From 6080d1dc719c38fd97c2abd38e0ad938fbf6f452 Mon Sep 17 00:00:00 2001 From: "Felipe F. Tonello" Date: Thu, 10 Jan 2013 17:10:46 -0800 Subject: connman: fixed init script so connman can runs over nfs Adding -I to the arguments, connmand will ignore the eth interface, so if you are using nfs it will not be disconnected. OBS: it might not work if using more than one eth interface. But it's better than not using connman with nfs at all. Signed-off-by: Felipe F. Tonello Signed-off-by: Saul Wold --- meta/recipes-connectivity/connman/connman/connman | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'meta/recipes-connectivity/connman/connman') diff --git a/meta/recipes-connectivity/connman/connman/connman b/meta/recipes-connectivity/connman/connman/connman index 4a0017fc18..aed4a792db 100644 --- a/meta/recipes-connectivity/connman/connman/connman +++ b/meta/recipes-connectivity/connman/connman/connman @@ -28,9 +28,11 @@ done do_start() { EXTRA_PARAM="" - if test $nfsroot -eq 0 ; then - $DAEMON $EXTRA_PARAM + if test $nfsroot -eq 1 ; then + ethn=`ifconfig | grep eth | sed -e "s/\(eth[0-9]\)\(.*\)/\1/"` + EXTRA_PARAM="-I $ethn" fi + $DAEMON $EXTRA_PARAM } do_stop() { -- cgit 1.2.3-korg