Author: arekm
Date: Tue Sep 11 20:47:57 2007
New Revision: 8720

Modified:
   rc-scripts/trunk/sysconfig/network-scripts/ifup
Log:
PLDize ARP cache updating procedure.

Modified: rc-scripts/trunk/sysconfig/network-scripts/ifup
==============================================================================
--- rc-scripts/trunk/sysconfig/network-scripts/ifup     (original)
+++ rc-scripts/trunk/sysconfig/network-scripts/ifup     Tue Sep 11 20:47:57 2007
@@ -184,10 +184,10 @@
                ip addr add ${IP6ADDR} dev ${DEVICE} ${IP6ADDROPT}
        fi
 
-       if [ -x /sbin/arping ]; then
+       if is_yes "$IPV4_NETWORKING" && [ -n "${IP4ADDR}" -a -x /sbin/arping]; 
then
                # update ARP cache of neighboring computers
-               /sbin/arping -q -A -c 1 -I ${REALDEVICE} ${IPADDR}
-               ( sleep 2; /sbin/arping -q -U -c 1 -I ${REALDEVICE} ${IPADDR} ) 
> /dev/null 2>&1 < /dev/null &
+               /sbin/arping -q -A -c 1 -I ${DEVICE} ${IP4ADDR}
+               ( sleep 2; /sbin/arping -q -U -c 1 -I ${DEVICE} ${IP4ADDR} ) > 
/dev/null 2>&1 < /dev/null &
        fi
 
        # IPv4/6 gateways and default routes
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to