[oe-commits] Felipe F. Tonello : connman: fixed init script so connman can runs over nfs
git at git.openembedded.org
git at git.openembedded.org
Tue Jan 15 08:15:05 UTC 2013
Module: openembedded-core.git
Branch: master
Commit: 6080d1dc719c38fd97c2abd38e0ad938fbf6f452
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=6080d1dc719c38fd97c2abd38e0ad938fbf6f452
Author: Felipe F. Tonello <ftonello at cercacor.com>
Date: Thu Jan 10 17:10:46 2013 -0800
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 at cercacor.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
---
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 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() {
More information about the Openembedded-commits
mailing list