From a12d5004ebd0035494247f71c5cebc060729c569 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 26 Jun 2002 02:31:36 +0000 Subject: don't add network routes when netmask is 255.255.255.255 --- sysconfig/network-scripts/ifup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup index da639adb..66c53c37 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -254,7 +254,7 @@ else arping -q -U -c 1 -I ${REALDEVICE} ${IPADDR} ) > /dev/null 2>&1 < /dev/null & # Add a route for the subnet. Replace any existing route. - if [ "${ISALIAS}" = no ]; then + if [ "${ISALIAS}" = no -a "${NETMASK}" != "255.255.255.255" ]; then ip route replace ${NETWORK}/${PREFIX} ${SRC} dev ${REALDEVICE} fi -- cgit v1.2.1