aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2004-10-18 16:28:44 +0000
committerBill Nottingham <notting@redhat.com>2004-10-18 16:28:44 +0000
commit20d98a99e7b9eeb4082d49626ce974f26043a68b (patch)
treef756f7825b86701b083822a40d27b331963cd76a /sysconfig
parent642b69bd563d709a5a88cf123df64883b63e5d9c (diff)
downloadinitscripts-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-xsysconfig/network-scripts/ifup2
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