[poky] [PATCH] connman: fixed init script, so it can run with nfs
Iorga, Cristian
cristian.iorga at intel.com
Wed Jan 9 02:12:29 PST 2013
Hello Felipe,
I have some questions regarding this patch:
1. On which hardware/machine have you tested this patch? (real hardware, qemu machine, etc)
2. In what way is connman affecting nfs? In other words, what is the root cause?
3. Which version of connman are you using?
I am asking these questions because I am working on something somehow related, and I think a more general fix might be needed.
Regards,
Cristian Iorga
-----Original Message-----
From: poky-bounces at yoctoproject.org [mailto:poky-bounces at yoctoproject.org] On Behalf Of eu at felipetonello.com
Sent: Wednesday, January 09, 2013 2:37 AM
To: poky at yoctoproject.org
Cc: Felipe F. Tonello
Subject: [poky] [PATCH] connman: fixed init script, so it can run with nfs
From: "Felipe F. Tonello" <ftonello at cercacor.com>
Adding -I to the arguments, connmand will ignore the eth interface, so if you are using nfs it will not be disconnected.
FIXME: 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>
---
meta/recipes-connectivity/connman/connman/connman | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-connectivity/connman/connman/connman b/meta/recipes-connectivity/connman/connman/connman
index 4a0017f..e90925e 100644
--- a/meta/recipes-connectivity/connman/connman/connman
+++ b/meta/recipes-connectivity/connman/connman/connman
@@ -26,11 +26,14 @@ while read dev mtpt fstype rest; do
fi
done
+ethn=`ifconfig | grep eth | sed -e "s/\(eth[0-9]\)\(.*\)/\1/"`
+
do_start() {
EXTRA_PARAM=""
- if test $nfsroot -eq 0 ; then
- $DAEMON $EXTRA_PARAM
+ if test $nfsroot -eq 1 ; then
+ EXTRA_PARAM="-I $ethn"
fi
+ $DAEMON $EXTRA_PARAM
}
do_stop() {
--
1.7.9.5
_______________________________________________
poky mailing list
poky at yoctoproject.org
https://lists.yoctoproject.org/listinfo/poky
More information about the poky
mailing list