diff options
author | Bill Nottingham <notting@redhat.com> | 2008-09-02 14:13:21 -0400 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2008-09-02 14:13:21 -0400 |
commit | d76fe88aa176814394c3b1fdb53fa6d57749d4a0 (patch) | |
tree | 6b7ad44224e7a39190aec468ec5c964e2841e1c9 /sysconfig/network-scripts | |
parent | f87aef85d35878ba5886e739dffa84068198f0c0 (diff) | |
download | initscripts-d76fe88aa176814394c3b1fdb53fa6d57749d4a0.tar initscripts-d76fe88aa176814394c3b1fdb53fa6d57749d4a0.tar.gz initscripts-d76fe88aa176814394c3b1fdb53fa6d57749d4a0.tar.bz2 initscripts-d76fe88aa176814394c3b1fdb53fa6d57749d4a0.tar.xz initscripts-d76fe88aa176814394c3b1fdb53fa6d57749d4a0.zip |
Use the full path for arping.
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-x | sysconfig/network-scripts/ifup-eth | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth index 750e57ad..fa430f7f 100755 --- a/sysconfig/network-scripts/ifup-eth +++ b/sysconfig/network-scripts/ifup-eth @@ -257,7 +257,7 @@ else 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 + if ! /sbin/arping -q -c 2 -w 3 -D -I ${REALDEVICE} ${IPADDR} ; then echo $"Error, some other host already uses address ${IPADDR}." exit 1 fi @@ -272,9 +272,9 @@ else fi # update ARP cache of neighboring computers - arping -q -A -c 1 -I ${REALDEVICE} ${IPADDR} + /sbin/arping -q -A -c 1 -I ${REALDEVICE} ${IPADDR} ( sleep 2; - arping -q -U -c 1 -I ${REALDEVICE} ${IPADDR} ) > /dev/null 2>&1 < /dev/null & + /sbin/arping -q -U -c 1 -I ${REALDEVICE} ${IPADDR} ) > /dev/null 2>&1 < /dev/null & fi # Set a default route. |