From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] package/netplug: init script create needed lock directory
Date: Tue, 5 Sep 2017 11:01:17 +0200 [thread overview]
Message-ID: <20170905090117.GA3713@scaer> (raw)
In-Reply-To: <20170905083917.8625-1-corjon.j@ecagroup.com>
Julien, All,
On 2017-09-05 10:39 +0200, Julien Corjon spake thusly:
> 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
mkdir -p will only create what is needed, so if the directory already exists,
it will do nothing, and will not whine either. So, don't test, just mkdir.
Regards,
Yann E. MORIN.
> # Source function library.
> if [ -f /etc/init.d/functions ]; then
> . /etc/init.d/functions
> --
> 2.11.0
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
next prev parent reply other threads:[~2017-09-05 9:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170905090117.GA3713@scaer \
--to=yann.morin.1998@free.fr \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox