diff options
-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. |