From 21f8751be9a78c429bb86202fb97ffae5308f268 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Tue, 10 Oct 2000 15:35:35 +0000 Subject: handle "gw x.x.x.x" as the last pair of flags in ifup-routes --- sysconfig/network-scripts/ifup-routes | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sysconfig') 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 -- cgit v1.2.1