aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig')
-rwxr-xr-xsysconfig/network-scripts/ifup-routes4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-routes b/sysconfig/network-scripts/ifup-routes
index 4a4d5aa8..7562d242 100755
--- a/sysconfig/network-scripts/ifup-routes
+++ b/sysconfig/network-scripts/ifup-routes
@@ -15,8 +15,10 @@ 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
+grep "^any " /etc/sysconfig/static-routes | while read ignore type net netmask mask gw dev ; do
if [ "$dev" = "$1" ]; then
/sbin/route add -$type $net $netmask $mask $dev
+ elif [ "$gw" = "gw" ]; then
+ /sbin/route add -$type $net $netmask $mask $gw $dev
fi
done