From ca5bd7279c61f0b7dd5083d9ffab85fc2e0858ba Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 16 Apr 2007 22:07:59 +0000 Subject: disable link checking when PERSISTENT_DHCLIENT is set (#234075) --- sysconfig/network-scripts/ifup-eth | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysconfig') diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth index b9a00f13..2b829e00 100755 --- a/sysconfig/network-scripts/ifup-eth +++ b/sysconfig/network-scripts/ifup-eth @@ -177,7 +177,7 @@ if [ -n "${DYNCONFIG}" -a -x /sbin/dhclient ]; then DHCLIENTARGS="${DHCLIENTARGS} ${ONESHOT} -q ${DHCLIENTCONF} -lf /var/lib/dhclient/dhclient-${DEVICE}.leases -pf /var/run/dhclient-${DEVICE}.pid" echo echo -n $"Determining IP information for ${DEVICE}..." - if check_link_down ${DEVICE}; then + if [[ "${PERSISTENT_DHCLIENT}" != [yY1]* ]] && check_link_down ${DEVICE}; then echo $" failed; no link present. Check cable?" ip link set dev ${DEVICE} down >/dev/null 2>&1 exit 1 -- cgit v1.2.1