]> code.ossystems Code Review - openembedded-core.git/commitdiff
connman: fixed init script so connman can runs over nfs
authorFelipe F. Tonello <ftonello@cercacor.com>
Fri, 11 Jan 2013 01:10:46 +0000 (17:10 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 15 Jan 2013 08:09:30 +0000 (08:09 +0000)
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 <ftonello@cercacor.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-connectivity/connman/connman/connman

index 4a0017fc18115de957df62a384961d5bcdffdf9f..aed4a792db885f0ceefa17eeea794d061a976446 100644 (file)
@@ -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() {