aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-03-05 20:32:23 +0000
committerBill Nottingham <notting@redhat.com>2001-03-05 20:32:23 +0000
commit188cd3c51890943d2c715b60730a2b1437111226 (patch)
treea734472c14f9f49344b5075ba4f2bf2a61a1f038 /rc.d/init.d
parent1099ac3c2884ea0d4a607afa68630172e192d48a (diff)
downloadinitscripts-188cd3c51890943d2c715b60730a2b1437111226.tar
initscripts-188cd3c51890943d2c715b60730a2b1437111226.tar.gz
initscripts-188cd3c51890943d2c715b60730a2b1437111226.tar.bz2
initscripts-188cd3c51890943d2c715b60730a2b1437111226.tar.xz
initscripts-188cd3c51890943d2c715b60730a2b1437111226.zip
- don't attempt to work around broken linuxconf routes, simplify
(and make consistent) adding of static routes, and make it work again for aliases (#29500, #29549)
Diffstat (limited to 'rc.d/init.d')
-rwxr-xr-xrc.d/init.d/network8
1 files changed, 2 insertions, 6 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network
index c022b7a0..60e378f6 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -103,12 +103,8 @@ case "$1" in
# Add non interface-specific static-routes.
if [ -f /etc/sysconfig/static-routes ]; then
- grep "^any" /etc/sysconfig/static-routes | while read ignore type dest netmask mask bogus args; do
- if [ "${bogus}" = "gw" ]; then
- /sbin/route add -$type $dest $netmask $mask $args
- else
- /sbin/route add -$type $dest $netmask $mask $bogus $args
- fi
+ grep "^any" /etc/sysconfig/static-routes | while read ignore args ; do
+ /sbin/route add -$args
done
fi