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