aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@redhat.com>2000-10-10 15:35:35 +0000
committerNalin Dahyabhai <nalin@redhat.com>2000-10-10 15:35:35 +0000
commit21f8751be9a78c429bb86202fb97ffae5308f268 (patch)
treeecd34b0afda3a14a0f1d93ed7c7585f811dc3443
parentda07f250aa6ee2d5ef587f18c4696f61f7676cc0 (diff)
downloadinitscripts-21f8751be9a78c429bb86202fb97ffae5308f268.tar
initscripts-21f8751be9a78c429bb86202fb97ffae5308f268.tar.gz
initscripts-21f8751be9a78c429bb86202fb97ffae5308f268.tar.bz2
initscripts-21f8751be9a78c429bb86202fb97ffae5308f268.tar.xz
initscripts-21f8751be9a78c429bb86202fb97ffae5308f268.zip
handle "gw x.x.x.x" as the last pair of flags in ifup-routes
-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