summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2013-03-22 10:11:42 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-03-22 16:22:13 +0000
commitda682e752e351e5bb7636ee187db3eabc208c177 (patch)
treeb95469d0af5a634a0d8a42d82b0b4149b7cfd7b5
parent858ad53aee9ef5848c09d76c0e6bf464bc31d30e (diff)
downloadopenembedded-core-da682e752e351e5bb7636ee187db3eabc208c177.tar.gz
openembedded-core-da682e752e351e5bb7636ee187db3eabc208c177.tar.bz2
openembedded-core-da682e752e351e5bb7636ee187db3eabc208c177.zip
connman-conf: Avoid appending IPv4 address
If run more than once, the IP addresses would be appended to IPv4 variable. Avoid that by rewriting the IPv4 always. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-connectivity/connman/connman-conf/qemuall/wired-setup2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-connectivity/connman/connman-conf/qemuall/wired-setup b/meta/recipes-connectivity/connman/connman-conf/qemuall/wired-setup
index 59ebb573ba..c46899ef32 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 -f ${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