From 47428a59228431f226232ea0972c528090bbf25e Mon Sep 17 00:00:00 2001 From: Jonathan Frazier Date: Tue, 16 Sep 2008 16:57:30 -0400 Subject: [PATCH] limit dhclient to a single interface instead of all that are available. --- src/ethernet.subr | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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 -- 1.6.0.2