From 58a797d5f93078b38d0cad739907ad538c5b41b0 Mon Sep 17 00:00:00 2001 From: Victor Lowther Date: Wed, 25 Feb 2009 18:42:14 -0800 Subject: [PATCH] Do not run dhclient if the interface is already up. --- hooks/run-dhclient.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/hooks/run-dhclient.sh b/hooks/run-dhclient.sh index fcf890ef..afab0370 100755 --- a/hooks/run-dhclient.sh +++ b/hooks/run-dhclient.sh @@ -1,6 +1,7 @@ #!/bin/sh for i in /net.*.dhcp; do dev=${i#net.}; dev=${i%.dhcp} + [ -f "/net.$dev.up" ] && continue dhclient -1 -q $dev & done wait