[Buildroot] [PATCH 1/7] skeleton/S40network: tweak for debian ifupdown
Gustavo Zacarias
gustavo at zacarias.com.ar
Thu Nov 6 13:36:47 UTC 2014
Make the S40network script create the /run/network directory for the
debian variant of ifupdown which uses it as a lock directory.
Signed-off-by: Gustavo Zacarias <gustavo at zacarias.com.ar>
---
system/skeleton/etc/init.d/S40network | 3 +++
1 file changed, 3 insertions(+)
diff --git a/system/skeleton/etc/init.d/S40network b/system/skeleton/etc/init.d/S40network
index e69e613..4317d14 100755
--- a/system/skeleton/etc/init.d/S40network
+++ b/system/skeleton/etc/init.d/S40network
@@ -3,6 +3,9 @@
# Start the network....
#
+# Debian ifupdown needs the /run/network lock directory
+[ -h /sbin/ifup ] || mkdir -p /run/network
+
case "$1" in
start)
echo "Starting network..."
--
2.0.4
More information about the buildroot
mailing list