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 --- initscripts.spec | 5 ++++- sysconfig/network-scripts/ifup-routes | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/initscripts.spec b/initscripts.spec index 73b680b7..7e61f01b 100644 --- a/initscripts.spec +++ b/initscripts.spec @@ -1,6 +1,6 @@ Summary: The inittab file and the /etc/init.d scripts. Name: initscripts -Version: 5.49 +Version: 5.50 Copyright: GPL Group: System Environment/Base Release: 1 @@ -229,6 +229,9 @@ rm -rf $RPM_BUILD_ROOT %ghost %attr(0664,root,utmp) /var/run/utmp %changelog +* Tue Oct 10 2000 Nalin Dahyabhai +- handle "gw x.x.x.x" as the last pair of flags in ifup-routes + * Sun Sep 3 2000 Florian La Roche - /etc/init.d is already provided by chkconfig 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