Skip to contentSkip to conversation

connman: fixed init script so connman can runs over nfs

PATCH New [email protected] 1 participant 2 messages Jan 11, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 connman: fixed init script so connman can runs over 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.

OBS: 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 |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
meta/recipes-connectivity/connman/connman/connman +4 -2
index 4a0017f..aed4a79 100644
@@ -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() {
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 connman: fixed init script so connman can runs over 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.

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