Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 01/10] skeleton/S40network: tweak for debian ifupdown
Date: Fri, 14 Nov 2014 22:33:44 +0100	[thread overview]
Message-ID: <54667538.6050700@mind.be> (raw)
In-Reply-To: <1415969096-3032-2-git-send-email-gustavo@zacarias.com.ar>

On 14/11/14 13:44, Gustavo Zacarias wrote:
> 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@zacarias.com.ar>
> ---
>  system/skeleton/etc/init.d/S40network | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/system/skeleton/etc/init.d/S40network
> b/system/skeleton/etc/init.d/S40network
> index e69e613..4317d14 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
> +[ -h /sbin/ifup ] || mkdir -p /run/network

 I think checking for a symlink is a pretty fragile way for distinguishing
between Debian and busybox ifupdown...

 Why not just create the directory unconditionally? People who care about the
4K tmpfs wastage will probably want to get rid of this script entirely...


 Regards,
 Arnout

> +
>  case "$1" in
>    start)
>       echo "Starting network..."
>


-- 
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

  reply	other threads:[~2014-11-14 21:33 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-14 12:44 [Buildroot] [PATCHv2 00/10] systemV init without busybox series Gustavo Zacarias
2014-11-14 12:44 ` [Buildroot] [PATCH 01/10] skeleton/S40network: tweak for debian ifupdown Gustavo Zacarias
2014-11-14 21:33   ` Arnout Vandecappelle [this message]
2014-11-14 12:44 ` [Buildroot] [PATCH 02/10] dash: bump to 0.5.8-2 Gustavo Zacarias
2014-11-14 13:15   ` Thomas Petazzoni
2014-11-14 13:39     ` Peter Korsgaard
2014-11-14 13:42       ` Thomas Petazzoni
2014-11-14 13:49         ` Peter Korsgaard
2014-11-14 13:59           ` Gustavo Zacarias
2014-11-14 14:10             ` Peter Korsgaard
2014-11-14 14:14               ` Gustavo Zacarias
2014-11-14 14:16                 ` Peter Korsgaard
2014-11-14 12:44 ` [Buildroot] [PATCH 03/10] debianutils: new package Gustavo Zacarias
2014-11-14 21:35   ` Arnout Vandecappelle
2014-11-14 12:44 ` [Buildroot] [PATCH 04/10] ifupdown: " Gustavo Zacarias
2014-11-14 21:56   ` Arnout Vandecappelle
2014-11-14 22:25     ` Gustavo Zacarias
2014-11-14 12:44 ` [Buildroot] [PATCH 05/10] start-stop-daemon: " Gustavo Zacarias
2014-11-14 13:34   ` Károly Kasza
2014-11-14 13:42     ` Gustavo Zacarias
2014-11-14 13:49       ` Károly Kasza
2014-11-14 22:09   ` Arnout Vandecappelle
2014-11-14 22:26     ` Gustavo Zacarias
2014-11-14 12:44 ` [Buildroot] [PATCH 06/10] package/sysvinit: drop tty1/2 Gustavo Zacarias
2014-11-14 13:17   ` Thomas Petazzoni
2014-11-14 13:36   ` Peter Korsgaard
2014-11-14 12:44 ` [Buildroot] [PATCH 07/10] dhcp: install dhclient to /sbin Gustavo Zacarias
2014-11-14 22:17   ` Arnout Vandecappelle
2014-11-14 22:27     ` Gustavo Zacarias
2014-11-14 12:44 ` [Buildroot] [PATCH 08/10] dhcp: update dhclient-script Gustavo Zacarias
2014-11-14 13:19   ` Thomas Petazzoni
2014-11-14 13:54     ` Gustavo Zacarias
2014-11-14 12:44 ` [Buildroot] [PATCH 09/10] dhcpcd: bump to version 6.6.1 Gustavo Zacarias
2014-11-14 12:44 ` [Buildroot] [PATCH 10/10] dhcpcd: use standard installation Gustavo Zacarias
2014-11-14 22:28   ` Arnout Vandecappelle

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=54667538.6050700@mind.be \
    --to=arnout@mind.be \
    --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