diff options
author | Bill Nottingham <notting@redhat.com> | 1999-04-12 16:59:18 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 1999-04-12 16:59:18 +0000 |
commit | 91fd228098bf5650701c1b86817c3b1d1be1056f (patch) | |
tree | 9bb92c22ff727a725682e704a3ee76ed43fc617f /sysconfig/network-scripts/ifup | |
parent | 598c3dd75dbe2dd27edcb8ad19661046dab00e0d (diff) | |
download | initscripts-91fd228098bf5650701c1b86817c3b1d1be1056f.tar initscripts-91fd228098bf5650701c1b86817c3b1d1be1056f.tar.gz initscripts-91fd228098bf5650701c1b86817c3b1d1be1056f.tar.bz2 initscripts-91fd228098bf5650701c1b86817c3b1d1be1056f.tar.xz initscripts-91fd228098bf5650701c1b86817c3b1d1be1056f.zip |
remove 2.0 kernel support
Diffstat (limited to 'sysconfig/network-scripts/ifup')
-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 bfbe03bd..e106071e 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -106,7 +106,7 @@ else # don't re-add subnet route on 2.2 kernels, but add a route # to a non-local subnet. # stupid hack, but it should work - if [ "$ISALIAS" = no ] && grep -q " 2.0" /proc/version || [ -z "`route -n | sed "s/ .*//" | grep ${NETWORK}`" ]; then + if [ "$ISALIAS" = no ] && [ -z "`route -n | sed "s/ .*//" | grep ${NETWORK}`" ]; then route add -net ${NETWORK} netmask ${NETMASK} ${DEVICE} else route add -host ${IPADDR} ${DEVICE} |