aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2000-03-31 20:32:52 +0000
committerBill Nottingham <notting@redhat.com>2000-03-31 20:32:52 +0000
commit8cc513bfc49d68b7951fd094b1747f638d898ae0 (patch)
treee67b58f28cc455ca805f952602f2f56fe9d6b14d
parenta68ba98a217bc89cb8ef4288ae75e4c019181598 (diff)
downloadinitscripts-8cc513bfc49d68b7951fd094b1747f638d898ae0.tar
initscripts-8cc513bfc49d68b7951fd094b1747f638d898ae0.tar.gz
initscripts-8cc513bfc49d68b7951fd094b1747f638d898ae0.tar.bz2
initscripts-8cc513bfc49d68b7951fd094b1747f638d898ae0.tar.xz
initscripts-8cc513bfc49d68b7951fd094b1747f638d898ae0.zip
don't add unnecessary host routes
-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 d55762ba..12d7d520 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -117,7 +117,7 @@ else
# stupid hack, but it should work
if [ "$ISALIAS" = no ] && [ -z "`route -n | sed "s/ .*//" | grep ${NETWORK}`" ]; then
route add -net ${NETWORK} netmask ${NETMASK} dev ${DEVICE}
- else
+ elif [ "$ISALIAS" != no ]; then
route add -host ${IPADDR} ${DEVICE}
fi