aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2008-07-10 11:54:44 -0400
committerBill Nottingham <notting@redhat.com>2008-07-10 11:54:44 -0400
commit0c0f23f6dcd45effade15a7b534ebfb70cf30833 (patch)
tree9ed113bce73d0b435180e40e740230aa0d2558fe
parent30e061036f73c0adab9b4c2b604c02572fbfe7c3 (diff)
downloadinitscripts-0c0f23f6dcd45effade15a7b534ebfb70cf30833.tar
initscripts-0c0f23f6dcd45effade15a7b534ebfb70cf30833.tar.gz
initscripts-0c0f23f6dcd45effade15a7b534ebfb70cf30833.tar.bz2
initscripts-0c0f23f6dcd45effade15a7b534ebfb70cf30833.tar.xz
initscripts-0c0f23f6dcd45effade15a7b534ebfb70cf30833.zip
Don't do the arping check for loopback.
As it's rather pointless.
-rwxr-xr-xsysconfig/network-scripts/ifup-eth2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth
index 5c0a46c3..43e88fae 100755
--- a/sysconfig/network-scripts/ifup-eth
+++ b/sysconfig/network-scripts/ifup-eth
@@ -255,6 +255,7 @@ else
SRC=
fi
+ if [ "${REALDEVICE}" != "lo" ]; then
if ! LC_ALL=C ip addr ls ${REALDEVICE} | LC_ALL=C grep -q "${IPADDR}/${PREFIX}" ; then
if ! arping -q -c 2 -w 3 -D -I ${REALDEVICE} ${IPADDR} ; then
echo $"Error, some other host already uses address ${IPADDR}."
@@ -265,6 +266,7 @@ else
echo $"Error adding address ${IPADDR} for ${DEVICE}."
fi
fi
+ fi
if [ -n "$SRCADDR" ]; then
sysctl -w "net.ipv4.conf.${REALDEVICE}.arp_filter=1" >/dev/null 2>&1