diff options
author | Bill Nottingham <notting@redhat.com> | 2004-10-18 16:28:44 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2004-10-18 16:28:44 +0000 |
commit | 20d98a99e7b9eeb4082d49626ce974f26043a68b (patch) | |
tree | f756f7825b86701b083822a40d27b331963cd76a /sysconfig | |
parent | 642b69bd563d709a5a88cf123df64883b63e5d9c (diff) | |
download | initscripts-20d98a99e7b9eeb4082d49626ce974f26043a68b.tar initscripts-20d98a99e7b9eeb4082d49626ce974f26043a68b.tar.gz initscripts-20d98a99e7b9eeb4082d49626ce974f26043a68b.tar.bz2 initscripts-20d98a99e7b9eeb4082d49626ce974f26043a68b.tar.xz initscripts-20d98a99e7b9eeb4082d49626ce974f26043a68b.zip |
fix GATEWAYDEV (#133575)
Diffstat (limited to 'sysconfig')
-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 115ef6fa..446227c4 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -355,7 +355,7 @@ else if [ -z "${GATEWAYDEV}" -o "${GATEWAYDEV}" = "${REALDEVICE}" ]; then # set up default gateway. replace if one already exists if [ -n "${GATEWAY}" -a "`ipcalc --network ${GATEWAY} ${NETMASK} 2>/dev/null`" = "NETWORK=${NETWORK}" ]; then - ip route replace default via ${GATEWAY} ${WINDOW:+window $WINDOW} ${SRC} + ip route replace default via ${GATEWAY} ${WINDOW:+window $WINDOW} ${SRC} ${GATEWAYDEV:dev $GATEWAYDEV} elif [ "${GATEWAYDEV}" = "${DEVICE}" ]; then ip route replace default ${SRC} ${WINDOW:+window $WINDOW} dev ${REALDEVICE} fi |