aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2000-05-31 21:19:19 +0000
committerBill Nottingham <notting@redhat.com>2000-05-31 21:19:19 +0000
commitd9bd33e458de618fa0b0134fbac6eefefb21759d (patch)
tree9f782380e71a4859ea0a42dfdb5d3240d0a3cbe2 /rc.d
parent5c4af0e0a719feef0f1c25221bf5a9eed2b1032c (diff)
downloadinitscripts-d9bd33e458de618fa0b0134fbac6eefefb21759d.tar
initscripts-d9bd33e458de618fa0b0134fbac6eefefb21759d.tar.gz
initscripts-d9bd33e458de618fa0b0134fbac6eefefb21759d.tar.bz2
initscripts-d9bd33e458de618fa0b0134fbac6eefefb21759d.tar.xz
initscripts-d9bd33e458de618fa0b0134fbac6eefefb21759d.zip
fix check for strange linuxconf static-routes
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/init.d/network9
1 files changed, 6 insertions, 3 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network
index 29d8ce77..30025a04 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -68,9 +68,12 @@ 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 gw gateway; do
- [ "${gateway}" != "${gateway##[0-9}" ] && \
- /sbin/route add -$type $dest $netmask $mask $gw $gateway
+ 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
done
fi