aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--initscripts.spec5
-rwxr-xr-xsysconfig/network-scripts/ifup-routes4
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 <nalin@redhat.com>
+- handle "gw x.x.x.x" as the last pair of flags in ifup-routes
+
* Sun Sep 3 2000 Florian La Roche <Florian.LaRoche@redhat.com>
- /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