diff options
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/init.d/network | 8 |
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 |