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:12:05 +0000 |
commit | 9eb88ceb39b7d0b8ddc6487e61ce8edadef10ec4 (patch) | |
tree | ba680a3aea959cca7fdf5504c2b782dfec080c1e /meta/recipes-connectivity | |
parent | c7f170bcb86f14c34f96a13e2f427aa186bdb721 (diff) | |
download | poky-9eb88ceb39b7d0b8ddc6487e61ce8edadef10ec4.tar.gz |
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.
(From OE-Core rev: 6080d1dc719c38fd97c2abd38e0ad938fbf6f452)
Signed-off-by: Felipe F. Tonello <ftonello@cercacor.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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 | |||
28 | 28 | ||
29 | do_start() { | 29 | do_start() { |
30 | EXTRA_PARAM="" | 30 | EXTRA_PARAM="" |
31 | if test $nfsroot -eq 0 ; then | 31 | if test $nfsroot -eq 1 ; then |
32 | $DAEMON $EXTRA_PARAM | 32 | ethn=`ifconfig | grep eth | sed -e "s/\(eth[0-9]\)\(.*\)/\1/"` |
33 | EXTRA_PARAM="-I $ethn" | ||
33 | fi | 34 | fi |
35 | $DAEMON $EXTRA_PARAM | ||
34 | } | 36 | } |
35 | 37 | ||
36 | do_stop() { | 38 | do_stop() { |