Skip to contentSkip to conversation

connman: Don't start connmand when booting using nfsroot

PATCH New Saul Wold 1 participant 1 message Aug 31, 2012

lore
Share & tools
lore

Saul Wold

author
#0 lore raw

PATCH v2 1/1 connman: Don't start connmand when booting using nfsroot

There was a change to connman, such that it cleans up the route table for devices at startup, this was causing the network to get lost and NFS to loose it connection.

[YOCTO #3008]

---
 meta/recipes-connectivity/connman/connman.inc     |    2 +-
 meta/recipes-connectivity/connman/connman/connman |    5 ++---
 2 files changed, 3 insertions(+), 4 deletions(-)
meta/recipes-connectivity/connman/connman.inc +1 -1
index 653d1df..0f96202 100644
@@ -20,7 +20,7 @@ DEPENDS  = "dbus glib-2.0 ppp iptables gnutls \
             ${@base_contains('DISTRO_FEATURES', '3g','ofono', '', d)} \
             "
 
-INC_PR = "r15"
+INC_PR = "r16"
 
 TIST = "--enable-tist"
 TIST_powerpc = ""
meta/recipes-connectivity/connman/connman/connman +2 -3
index f01bf37..4a0017f 100644
@@ -28,10 +28,9 @@ done
 
 do_start() {
 	EXTRA_PARAM=""
-	if test $nfsroot -eq 1 ; then
-		EXTRA_PARAM="-P ethernet"
+	if test $nfsroot -eq 0 ; then
+		$DAEMON $EXTRA_PARAM
 	fi
-	$DAEMON $EXTRA_PARAM
 }
 
 do_stop() {
Signature · 1 line
1.7.7.6