[OE-core] [PATCH 5/8] busybox: add ifup's ifstate dir to package
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Tue Feb 5 15:55:45 UTC 2013
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 <rep.dot.nop at gmail.com>
---
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}
}
--
1.7.10.4
More information about the Openembedded-core
mailing list