diff options
author | Felipe F. Tonello <ftonello@cercacor.com> | 2013-01-10 17:10:46 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-01-15 08:09:30 +0000 |
commit | 6080d1dc719c38fd97c2abd38e0ad938fbf6f452 (patch) | |
tree | 8e5fcd17086d14baa8066a72433a641ee3883474 /meta/recipes-connectivity | |
parent | 3bcd9188f919da1b10f692d29ef34cd18ef88184 (diff) | |
download | openembedded-core-6080d1dc719c38fd97c2abd38e0ad938fbf6f452.tar.gz openembedded-core-6080d1dc719c38fd97c2abd38e0ad938fbf6f452.tar.bz2 openembedded-core-6080d1dc719c38fd97c2abd38e0ad938fbf6f452.zip |
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 <ftonello@cercacor.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-connectivity')
-rw-r--r-- | meta/recipes-connectivity/connman/connman/connman | 6 |
1 files changed, 4 insertions, 2 deletions
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() { |