aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-03-29 04:39:13 +0000
committerBill Nottingham <notting@redhat.com>1999-03-29 04:39:13 +0000
commita12fcde366596ce84d0c442bf9083c9d5fe79238 (patch)
tree8bd66108db94cc7ceb936618c3f62d654063e8cd
parent81c3f8587c8cbb4bdb1052300424df62439577ce (diff)
downloadinitscripts-a12fcde366596ce84d0c442bf9083c9d5fe79238.tar
initscripts-a12fcde366596ce84d0c442bf9083c9d5fe79238.tar.gz
initscripts-a12fcde366596ce84d0c442bf9083c9d5fe79238.tar.bz2
initscripts-a12fcde366596ce84d0c442bf9083c9d5fe79238.tar.xz
initscripts-a12fcde366596ce84d0c442bf9083c9d5fe79238.zip
fix test for 2.0/2.2 kernel
-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 71b47881..af2b1e7b 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 -a ! -f "/proc/sys/kernel/modprobe" ] || [ -z "`route -n | sed "s/ .*//" | grep ${NETWORK}`" ]; then
+ if [ "$ISALIAS" = no ] && grep -q "2.0" /proc/version || [ -z "`route -n | sed "s/ .*//" | grep ${NETWORK}`" ]; then
route add -net ${NETWORK} netmask ${NETMASK} ${DEVICE}
else
route add -host ${IPADDR} ${DEVICE}