Skip to contentSkip to conversation

connman: fixed init script, so it can run with nfs

PATCH New Felipe Ferreri Tonello 1 participant 1 message Oct 10, 2012 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 connman: fixed init script, so it can run with nfs

From: "Felipe F. Tonello" <[email protected]>

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.

---
 meta/recipes-connectivity/connman/connman/connman |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
meta/recipes-connectivity/connman/connman/connman +5 -2
index 4a0017f..e90925e 100644
@@ -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() {
Signature · 1 line
1.7.9.5