Patchwork [2/2] connman-conf: Avoid appending IPv4 address

login
register
mail settings
Submitter Jukka Rissanen
Date March 18, 2013, 1:38 p.m.
Message ID <1363613908-20116-3-git-send-email-jukka.rissanen@linux.intel.com>
Download mbox | patch
Permalink /patch/46391/
State New
Headers show

Comments

Jukka Rissanen - March 18, 2013, 1:38 p.m.
If run more than once, the IP addresses would be appended
to IPv4 variable. Avoid that by rewriting the IPv4 always.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
---
 meta/recipes-connectivity/connman/connman-conf/qemuall/wired-setup | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/recipes-connectivity/connman/connman-conf/qemuall/wired-setup b/meta/recipes-connectivity/connman/connman-conf/qemuall/wired-setup
index 135a6c1..bfdbfb3 100644
--- a/meta/recipes-connectivity/connman/connman-conf/qemuall/wired-setup
+++ b/meta/recipes-connectivity/connman/connman-conf/qemuall/wired-setup
@@ -12,5 +12,5 @@  if [ "x$NET_CONF" = "x" ]; then
 	rm ${CONFIGF}
 else
 	# Setup a connman config accordingly
-	sed -i -e "s|^\(IPv4 =\)|\1 ${NET_CONF}|" ${CONFIGF}
+	sed -i -e "s|^IPv4 =.*|IPv4 = ${NET_CONF}|" ${CONFIGF}
 fi