From 200bf4ec5eeef89505954132b2ba8275a4e8b2ae Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 2 Feb 2000 16:29:06 +0000 Subject: fix handling of bizarro linuxconf routes --- rc.d/init.d/network | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'rc.d') diff --git a/rc.d/init.d/network b/rc.d/init.d/network index 3d3669f7..d6987e4a 100755 --- a/rc.d/init.d/network +++ b/rc.d/init.d/network @@ -64,8 +64,9 @@ 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 args; do - /sbin/route add -$args + 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 done fi -- cgit v1.2.1