From d9bd33e458de618fa0b0134fbac6eefefb21759d Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 31 May 2000 21:19:19 +0000 Subject: fix check for strange linuxconf static-routes --- rc.d/init.d/network | 9 ++++++--- 1 file 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 -- cgit v1.2.1