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.

(From OE-Core rev: da682e752e351e5bb7636ee187db3eabc208c177)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Jukka Rissanen 2013-03-22 10:11:42 +02:00 committed by Richard Purdie
parent e93b6376a0
commit 9299df1ebc
1 changed files with 1 additions and 1 deletions

View 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