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 | |
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.
-rw-r--r-- | rc.d/init.d/netconsole | 2 | ||||
-rwxr-xr-x | sysconfig/network-scripts/ifup-eth | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/rc.d/init.d/netconsole b/rc.d/init.d/netconsole index 1a6edc82..3a29c96b 100644 --- a/rc.d/init.d/netconsole +++ b/rc.d/init.d/netconsole @@ -54,7 +54,7 @@ print_address_info () target=$host fi if [ -z "$SYSLOGMACADDR" ]; then - arp=$(LANG=C arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }') + arp=$(LANG=C /sbin/arping -c 1 -I $DEV $target 2>/dev/null | awk '/ reply from .*[.*]/ { print gensub(".* reply from .* \\[(.*)\\].*","\\1","G") }') [ -n "$arp" ] && echo "SYSLOGMACADDR=$arp" fi } 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. |