All of lore.kernel.org
 help / color / mirror / Atom feed
From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: "init >> \"initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org\""
	<initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: [PATCH 01/11] do not run dhclient, if no net device found
Date: Fri, 15 May 2009 14:38:58 +0200	[thread overview]
Message-ID: <4A0D6262.5070008@redhat.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 106 bytes --]

---
  modules.d/40network/run-dhclient.sh |    3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)



[-- Attachment #2: e7b6ed13796581f4881c2a42c198d314375d4f9c.diff --]
[-- Type: text/x-patch, Size: 449 bytes --]

diff --git a/modules.d/40network/run-dhclient.sh b/modules.d/40network/run-dhclient.sh
index afab037..a98e01d 100755
--- a/modules.d/40network/run-dhclient.sh
+++ b/modules.d/40network/run-dhclient.sh
@@ -1,8 +1,9 @@
 #!/bin/sh
 for i in /net.*.dhcp; do
+    [ "$dev" = "/net.*.dhcp" ] && break
     dev=${i#net.}; dev=${i%.dhcp}
     [ -f "/net.$dev.up" ] && continue
     dhclient -1 -q $dev &
 done
 wait
-    
\ No newline at end of file
+    


                 reply	other threads:[~2009-05-15 12:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4A0D6262.5070008@redhat.com \
    --to=harald-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.