From patchwork Fri Jan 11 02:42:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: connman: fixed init script so connman can runs over nfs Date: Fri, 11 Jan 2013 02:42:07 -0000 From: eu@felipetonello.com X-Patchwork-Id: 42475 Message-Id: <50EF7BFF.70908@felipetonello.com> To: openembedded-core@lists.openembedded.org From: "Felipe F. Tonello" 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 --- meta/recipes-connectivity/connman/connman/connman | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/meta/recipes-connectivity/connman/connman/connman b/meta/recipes-connectivity/connman/connman/connman index 4a0017f..aed4a79 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() {