aboutsummaryrefslogtreecommitdiff
path: root/package/netplug
diff options
context:
space:
mode:
authorGravatar Julien Corjon <corjon.j@ecagroup.com>2017-09-05 11:54:56 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-09-05 21:29:59 +0200
commitc81c6d8f3d5bdf1825acaa27428c9e25def48593 (patch)
tree0a4eb95a4f2f91cdc90546173000816ad19571c1 /package/netplug
parent95e284bd2732390eb34cb72c798032fd7ac8920c (diff)
downloadbuildroot-c81c6d8f3d5bdf1825acaa27428c9e25def48593.tar.gz
buildroot-c81c6d8f3d5bdf1825acaa27428c9e25def48593.tar.bz2
package/netplug: init script create needed lock directory
Init script use /var/lock/subsys/netplugd but directory /var/lock/subsys can be missing. Signed-off-by: Julien Corjon <corjon.j@ecagroup.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/netplug')
-rwxr-xr-xpackage/netplug/S29netplug3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/netplug/S29netplug b/package/netplug/S29netplug
index 88f933d556..d3df9ddff5 100755
--- a/package/netplug/S29netplug
+++ b/package/netplug/S29netplug
@@ -11,6 +11,9 @@
# Copyright 2003 Key Research, Inc.
+# Create needed directories
+mkdir -p /var/lock/subsys
+
# Source function library.
if [ -f /etc/init.d/functions ]; then
. /etc/init.d/functions