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....@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


_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Reply via email to