[PATCH 01/11] do not run dhclient, if no net device found

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


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
+    


[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux