package/netplug: init script create needed lock directory
authorJulien Corjon <corjon.j@ecagroup.com>
Tue, 5 Sep 2017 09:54:56 +0000 (11:54 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 5 Sep 2017 19:29:59 +0000 (21:29 +0200)
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>
package/netplug/S29netplug

index 88f933d5565e6dd4cfb0684fd86c45e892e76043..d3df9ddff538c8d99d3c8312dcf2bb59882326d0 100755 (executable)
@@ -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