aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-01-30 21:01:43 +0000
committerBill Nottingham <notting@redhat.com>2001-01-30 21:01:43 +0000
commit936a7cef8f3e40a02cad78c0992b4afd00b539a2 (patch)
tree7f615654a72de1c535c5edfcb19dbabfa8353439 /sysconfig/network-scripts/ifup
parent5be1a87e611e4afea890281b03d260aa4c33f6e0 (diff)
downloadinitscripts-936a7cef8f3e40a02cad78c0992b4afd00b539a2.tar
initscripts-936a7cef8f3e40a02cad78c0992b4afd00b539a2.tar.gz
initscripts-936a7cef8f3e40a02cad78c0992b4afd00b539a2.tar.bz2
initscripts-936a7cef8f3e40a02cad78c0992b4afd00b539a2.tar.xz
initscripts-936a7cef8f3e40a02cad78c0992b4afd00b539a2.zip
duh, is already set.
Diffstat (limited to 'sysconfig/network-scripts/ifup')
-rwxr-xr-xsysconfig/network-scripts/ifup2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index 5e3a08d6..6c7aa33d 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}" != "" -a "`ipcalc --network ${GATEWAY} ${NETMASK}`" = "`ipcalc --network ${IPADDR} ${NETMASK}`" ]; then
+ if [ "${GATEWAY}" != "" -a "`ipcalc --network ${GATEWAY} ${NETMASK}`" = "${NETWORK}" ]; then
route add default gw ${GATEWAY} ${DEVICE}
DEFGW=${GATEWAY}
elif [ "${GATEWAYDEV}" = "${DEVICE}" ]; then