All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] connman: fixed init script, so it can run with nfs
@ 2013-01-09  0:37 eu
  2013-01-09 10:12 ` Iorga, Cristian
  0 siblings, 1 reply; 11+ messages in thread
From: eu @ 2013-01-09  0:37 UTC (permalink / raw)
  To: poky; +Cc: Felipe F. Tonello

From: "Felipe F. Tonello" <ftonello@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@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



^ permalink raw reply related	[flat|nested] 11+ messages in thread
[parent not found: <1349809566-7013-1-git-send-email-ftonello@cercacor.com>]

end of thread, other threads:[~2013-01-11 16:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-09  0:37 [PATCH] connman: fixed init script, so it can run with nfs eu
2013-01-09 10:12 ` Iorga, Cristian
2013-01-09 13:03   ` Richard Purdie
2013-01-09 18:14     ` Felipe Ferreri Tonello
2013-01-10 19:23     ` Felipe Ferreri Tonello
2013-01-10 23:57       ` Richard Purdie
2013-01-11  1:17         ` Felipe Ferreri Tonello
2013-01-11 16:13           ` Richard Purdie
2013-01-09 18:15   ` Felipe Ferreri Tonello
2013-01-10  7:33     ` Iorga, Cristian
     [not found] <1349809566-7013-1-git-send-email-ftonello@cercacor.com>
2012-10-10 16:24 ` Felipe Ferreri Tonello

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.