]> code.ossystems Code Review - openembedded-core.git/commitdiff
connman-conf: Avoid appending IPv4 address
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Fri, 22 Mar 2013 08:11:42 +0000 (10:11 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 22 Mar 2013 16:22:13 +0000 (16:22 +0000)
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>
meta/recipes-connectivity/connman/connman-conf/qemuall/wired-setup

index 59ebb573bab9b9cee8c8cee4874203fe48962731..c46899ef32712befe7c2ba11e454c5e9ab913b95 100644 (file)
@@ -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