From patchwork Tue Feb 5 15:55:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [5/8] busybox: add ifup's ifstate dir to package Date: Tue, 05 Feb 2013 15:55:45 -0000 From: Bernhard Reutner-Fischer X-Patchwork-Id: 44107 Message-Id: To: openembedded-core@lists.openembedded.org ifupdown stores its ifstate into CONFIG_IFIPDOWN_IFSTATE_PATH. Fixes: ifup: can't open '/var/run/ifstate': No such file or directory Signed-off-by: Bernhard Reutner-Fischer --- meta/recipes-core/busybox/busybox.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc index 972e7d0..972df6d 100644 --- a/meta/recipes-core/busybox/busybox.inc +++ b/meta/recipes-core/busybox/busybox.inc @@ -199,6 +199,10 @@ do_install () { install -m 644 ${WORKDIR}/mdev.conf ${D}${sysconfdir}/mdev.conf fi fi + IFUPDOWN_IFSTATE_PATH=`awk '/^CONFIG_IFUPDOWN_IFSTATE_PATH/{split($0,x,/=/);p=x[2];gsub("\"","",p);print p;}' ${WORKDIR}/defconfig` + if test -n "$IFUPDOWN_IFSTATE_PATH"; then + install -m 0755 -d ${D}/"$IFUPDOWN_IFSTATE_PATH" + fi install -m 0644 ${S}/busybox.links ${D}${sysconfdir} }