diff options
author | Nalin Dahyabhai <nalin@redhat.com> | 2000-10-10 15:35:35 +0000 |
---|---|---|
committer | Nalin Dahyabhai <nalin@redhat.com> | 2000-10-10 15:35:35 +0000 |
commit | 21f8751be9a78c429bb86202fb97ffae5308f268 (patch) | |
tree | ecd34b0afda3a14a0f1d93ed7c7585f811dc3443 /sysconfig/network-scripts | |
parent | da07f250aa6ee2d5ef587f18c4696f61f7676cc0 (diff) | |
download | initscripts-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
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-x | sysconfig/network-scripts/ifup-routes | 4 |
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 |