ifupdown: Always ignore errors for busybox/Poky

--exit-on-error is not supported by the busybox run-parts
and the easiest way is to make the ignore-errors option
the default.

I didn't test the change on the device but is looks sound.
This commit is contained in:
Holger Hans Peter Freyther 2015-02-13 15:34:49 +01:00
parent 122a4cd73c
commit 396d421838
2 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,14 @@
Index: ifupdown-0.7.52/execute.c
===================================================================
--- ifupdown-0.7.52.orig/execute.c
+++ ifupdown-0.7.52/execute.c
@@ -168,8 +168,7 @@ int execute_scripts(interface_defn * ifd
return 1;
char buf[100];
- snprintf(buf, sizeof(buf), "run-parts %s%s/etc/network/if-%s.d",
- ignore_failures ? "" : "--exit-on-error ",
+ snprintf(buf, sizeof(buf), "run-parts %s/etc/network/if-%s.d",
verbose ? "--verbose " : "", opt);
int result = (*exec)(buf);

View File

@ -6,7 +6,8 @@ LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://debian/copyright;md5=7adfbe801102d1e7e6bfdd3f03754efa"
SRC_URI = "${DEBIAN_MIRROR}/main/i/ifupdown/ifupdown_${PV}.tar.xz"
SRC_URI = "${DEBIAN_MIRROR}/main/i/ifupdown/ifupdown_${PV}.tar.xz \
file://busybox-yocto-compat.patch "
SRC_URI[md5sum] = "bb204ae2fa4171d6f1de4097f4570a7d"
SRC_URI[sha256sum] = "8a0647c59ee0606f5da9205c5b3c5b000fea98fe39348f6bb2cba5fecfc51090"