]> code.ossystems Code Review - openembedded-core.git/commitdiff
build-appliance-image: fix lost net connectivity after restart
authorCristian Iorga <cristian.iorga@intel.com>
Mon, 11 Mar 2013 11:24:22 +0000 (13:24 +0200)
committerSaul Wold <sgw@linux.intel.com>
Thu, 14 Mar 2013 18:29:12 +0000 (11:29 -0700)
The issue is that an ethernet config file is removed without
proper checks in place (rm -f), which triggers an error and
makes the connman startup script to fail.

The file is now removed with proper checks in place.

Fixes [YOCTO #4003].

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-connectivity/connman/connman-conf/qemuall/wired-setup

index 135a6c19acd73b06f52e89e084e463d16ac9f720..59ebb573bab9b9cee8c8cee4874203fe48962731 100644 (file)
@@ -9,7 +9,7 @@ NET_CONF=`cat /proc/cmdline |sed -ne 's/^.*ip=\([^ ]*\):\([^ ]*\):\([^ ]*\):\([^
 if [ "x$NET_CONF" = "x" ]; then
        # Wired interface is not configured via kernel cmdline
        # Remove connman config file template
-       rm ${CONFIGF}
+       rm -f ${CONFIGF}
 else
        # Setup a connman config accordingly
        sed -i -e "s|^\(IPv4 =\)|\1 ${NET_CONF}|" ${CONFIGF}