aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2002-06-26 02:31:36 +0000
committerBill Nottingham <notting@redhat.com>2002-06-26 02:31:36 +0000
commita12d5004ebd0035494247f71c5cebc060729c569 (patch)
tree87d0b3d7b69a2b79ea19e917be3b36fa05d6afcc
parentb344e5585a4894d6de30aefa3c54b2e692382cbd (diff)
downloadinitscripts-a12d5004ebd0035494247f71c5cebc060729c569.tar
initscripts-a12d5004ebd0035494247f71c5cebc060729c569.tar.gz
initscripts-a12d5004ebd0035494247f71c5cebc060729c569.tar.bz2
initscripts-a12d5004ebd0035494247f71c5cebc060729c569.tar.xz
initscripts-a12d5004ebd0035494247f71c5cebc060729c569.zip
don't add network routes when netmask is 255.255.255.255
-rwxr-xr-xsysconfig/network-scripts/ifup2
1 files changed, 1 insertions, 1 deletions
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