mkinitrd unification across distributions
 help / color / mirror / Atom feed
* [PATCH 01/11] do not run dhclient, if no net device found
@ 2009-05-15 12:38 Harald Hoyer
  0 siblings, 0 replies; only message in thread
From: Harald Hoyer @ 2009-05-15 12:38 UTC (permalink / raw)
  To: init >> "initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"

[-- 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
+    


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-05-15 12:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-15 12:38 [PATCH 01/11] do not run dhclient, if no net device found Harald Hoyer

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