From 8436ade56a7b513a9f39ea4656ee085ca7f599d2 Mon Sep 17 00:00:00 2001 From: Jonathan Frazier Date: Tue, 16 Sep 2008 16:57:30 -0400 Subject: limit dhclient to a single interface instead of all that are available. Signed-off-by: James Rayner --- src/ethernet.subr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ethernet.subr b/src/ethernet.subr index fd46ec3..d6a6970 100644 --- a/src/ethernet.subr +++ b/src/ethernet.subr @@ -33,7 +33,7 @@ ethernet_up() { if checkyesno $DHCLIENT; then rm -r /var/run/dhclient-${INTERFACE}.pid >/dev/null 2>&1 - if ! dhclient -q -e TIMEOUT=$DHCP_TIMEOUT -pf /var/run/dhclient-${INTERFACE}.pid; then + if ! dhclient -q -e TIMEOUT=$DHCP_TIMEOUT -pf /var/run/dhclient-${INTERFACE}.pid $INTERFACE; then err_append "DHCP IP lease attempt failed" return 1 fi -- cgit v1.2.3-24-g4f1b