SVN: rc-scripts/trunk/sysconfig/network-scripts/ifup

arekm arekm at pld-linux.org
Tue Sep 11 20:47:58 CEST 2007


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


More information about the pld-cvs-commit mailing list