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 --- sysconfig/network-scripts/ifup-routes | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sysconfig/network-scripts/ifup-routes') diff --git a/sysconfig/network-scripts/ifup-routes b/sysconfig/network-scripts/ifup-routes index bcd8ac3b..c96f947e 100755 --- a/sysconfig/network-scripts/ifup-routes +++ b/sysconfig/network-scripts/ifup-routes @@ -15,3 +15,8 @@ fi grep "^$1 " /etc/sysconfig/static-routes | while read device args; do /sbin/route add -$args $device done +grep "^any " /etc/sysconfig/static-routes | while read ignore type net netmask mask bogus dev ; do + if [ "$dev" = "$device" ]; then + /sbin/route add -$type $net $netmask $mask $dev + fi +done -- cgit v1.2.1