aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2007-04-16 22:07:59 +0000
committerBill Nottingham <notting@redhat.com>2007-04-16 22:07:59 +0000
commitca5bd7279c61f0b7dd5083d9ffab85fc2e0858ba (patch)
tree87535fcf024aafed99b45a6283799a4c22a8b258 /sysconfig
parenta107a46776fe13767574cd46c0ba8bd12d7f3bf6 (diff)
downloadinitscripts-ca5bd7279c61f0b7dd5083d9ffab85fc2e0858ba.tar
initscripts-ca5bd7279c61f0b7dd5083d9ffab85fc2e0858ba.tar.gz
initscripts-ca5bd7279c61f0b7dd5083d9ffab85fc2e0858ba.tar.bz2
initscripts-ca5bd7279c61f0b7dd5083d9ffab85fc2e0858ba.tar.xz
initscripts-ca5bd7279c61f0b7dd5083d9ffab85fc2e0858ba.zip
disable link checking when PERSISTENT_DHCLIENT is set (#234075)
Diffstat (limited to 'sysconfig')
-rwxr-xr-xsysconfig/network-scripts/ifup-eth2
1 files changed, 1 insertions, 1 deletions
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