[Buildroot] [git commit] skeleton/S40network: tweak for debian ifupdown
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Mon Jan 12 21:23:04 UTC 2015
commit: http://git.buildroot.net/buildroot/commit/?id=3a005f10e8811956df65ed852ac899ec2a4ecf1d
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master
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>
Tested-by: Karoly Kasza <kaszak at gmail.com>
Reviewed-by: Karoly Kasza <kaszak at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
---
system/skeleton/etc/init.d/S40network | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/system/skeleton/etc/init.d/S40network b/system/skeleton/etc/init.d/S40network
index e69e613..bfdd491 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
+mkdir -p /run/network
+
case "$1" in
start)
echo "Starting network..."
More information about the buildroot
mailing list