diff options
author | Bill Nottingham <notting@redhat.com> | 2001-01-30 20:54:33 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2001-01-30 20:54:33 +0000 |
commit | 5be1a87e611e4afea890281b03d260aa4c33f6e0 (patch) | |
tree | 5605848a0c3bb6d9160addc99e1498987fa21bfd /sysconfig/network-scripts | |
parent | bce860ff5542d3c373626b58f049094d38fd0e9f (diff) | |
download | initscripts-5be1a87e611e4afea890281b03d260aa4c33f6e0.tar initscripts-5be1a87e611e4afea890281b03d260aa4c33f6e0.tar.gz initscripts-5be1a87e611e4afea890281b03d260aa4c33f6e0.tar.bz2 initscripts-5be1a87e611e4afea890281b03d260aa4c33f6e0.tar.xz initscripts-5be1a87e611e4afea890281b03d260aa4c33f6e0.zip |
hack default gw setting
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-x | sysconfig/network-scripts/ifup | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup index e9f66025..5e3a08d6 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -153,7 +153,7 @@ else if [ "${GATEWAYDEV}" = "" -o "${GATEWAYDEV}" = "${DEVICE}" ]; then # set up default gateway - if [ "${GATEWAY}" != "" ]; then + if [ "${GATEWAY}" != "" -a "`ipcalc --network ${GATEWAY} ${NETMASK}`" = "`ipcalc --network ${IPADDR} ${NETMASK}`" ]; then route add default gw ${GATEWAY} ${DEVICE} DEFGW=${GATEWAY} elif [ "${GATEWAYDEV}" = "${DEVICE}" ]; then |