aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-04-08 16:04:26 +0000
committerBill Nottingham <notting@redhat.com>1999-04-08 16:04:26 +0000
commit44e8ff24a4a674818c27e9435274333a99c4e02e (patch)
treec03f45b260266105c92dbd0198bd7d1288984459 /sysconfig/network-scripts/ifup
parent0685abf5cf2c7ac25482006491f3959709c2bcb7 (diff)
downloadinitscripts-44e8ff24a4a674818c27e9435274333a99c4e02e.tar
initscripts-44e8ff24a4a674818c27e9435274333a99c4e02e.tar.gz
initscripts-44e8ff24a4a674818c27e9435274333a99c4e02e.tar.bz2
initscripts-44e8ff24a4a674818c27e9435274333a99c4e02e.tar.xz
initscripts-44e8ff24a4a674818c27e9435274333a99c4e02e.zip
check for 2.0 kernels before doing some stuff
Diffstat (limited to 'sysconfig/network-scripts/ifup')
-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 7772012b..bfbe03bd 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 ] && 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}