aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifup-routes5
1 files changed, 5 insertions, 0 deletions
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