build-appliance-image: fix lost net connectivity after restart
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]. (From OE-Core rev: d9349e6e28cef107ad8bd00767ceba4d8aa464dd) Signed-off-by: Cristian Iorga <cristian.iorga@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
24ec421e1a
commit
796fc7784a
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue