aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2004-10-18 16:27:55 +0000
committerBill Nottingham <notting@redhat.com>2004-10-18 16:27:55 +0000
commite5756720ec9d51cf7cc951c49dde244c0d236037 (patch)
tree996f318e741fdf063576afa55fdd7ccb108163f1 /sysconfig/network-scripts/ifup
parent9bafaaf2ed136b278a040cafac0d8a3fbca9ae00 (diff)
downloadinitscripts-e5756720ec9d51cf7cc951c49dde244c0d236037.tar
initscripts-e5756720ec9d51cf7cc951c49dde244c0d236037.tar.gz
initscripts-e5756720ec9d51cf7cc951c49dde244c0d236037.tar.bz2
initscripts-e5756720ec9d51cf7cc951c49dde244c0d236037.tar.xz
initscripts-e5756720ec9d51cf7cc951c49dde244c0d236037.zip
fix GATEWAYDEV (#133375, <pekkas@netcore.fi>)
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 4be7494c..17d4cff7 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -400,7 +400,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