diff options
author | Bill Nottingham <notting@redhat.com> | 2002-06-26 02:31:36 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2002-06-26 02:31:36 +0000 |
commit | a12d5004ebd0035494247f71c5cebc060729c569 (patch) | |
tree | 87d0b3d7b69a2b79ea19e917be3b36fa05d6afcc | |
parent | b344e5585a4894d6de30aefa3c54b2e692382cbd (diff) | |
download | initscripts-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-x | sysconfig/network-scripts/ifup | 2 |
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 |