Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/netplug: init script create needed lock directory
@ 2017-09-05  8:39 Julien Corjon
  2017-09-05  9:01 ` Yann E. MORIN
  2017-09-05  9:54 ` [Buildroot] [PATCH v2] " Julien Corjon
  0 siblings, 2 replies; 6+ messages in thread
From: Julien Corjon @ 2017-09-05  8:39 UTC (permalink / raw)
  To: buildroot

Init script use /var/lock/subsys/netplugd but directory
/var/lock/subsys can be missing.

Signed-off-by: Julien Corjon <corjon.j@ecagroup.com>
---
 package/netplug/S29netplug | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/package/netplug/S29netplug b/package/netplug/S29netplug
index 88f933d556..fe63c1b79a 100755
--- a/package/netplug/S29netplug
+++ b/package/netplug/S29netplug
@@ -11,6 +11,9 @@
 
 # Copyright 2003 Key Research, Inc.
 
+# Create needed directories
+[ -d /var/lock/subsys ] || mkdir -p /var/lock/subsys
+
 # Source function library.
 if [ -f /etc/init.d/functions ]; then
 	. /etc/init.d/functions
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-10-16 21:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-05  8:39 [Buildroot] [PATCH] package/netplug: init script create needed lock directory Julien Corjon
2017-09-05  9:01 ` Yann E. MORIN
2017-09-05  9:54 ` [Buildroot] [PATCH v2] " Julien Corjon
2017-09-05 19:30   ` Thomas Petazzoni
2017-09-06 12:52   ` Peter Korsgaard
2017-10-16 21:46   ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox