aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/network-functions
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig/network-scripts/network-functions')
-rw-r--r--sysconfig/network-scripts/network-functions6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index 8511680b..19a274e5 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -261,13 +261,13 @@ add_default_route ()
"${GATEWAY}" != "none" ]; then
if ! check_device_down $1; then
if [ "$GATEWAY" = "0.0.0.0" ]; then
- /sbin/ip route add default dev ${GATEWAYDEV}
+ /sbin/ip route add default ${WINDOW:+window $WINDOW} dev ${GATEWAYDEV}
else
- /sbin/ip route add default via ${GATEWAY}
+ /sbin/ip route add default ${WINDOW:+window $WINDOW} via ${GATEWAY}
fi
fi
elif [ -f /etc/default-route ]; then
- /sbin/ip route add default via `cat /etc/default-route`
+ /sbin/ip route add default ${WINDOW:+window $WINDOW} via `cat /etc/default-route`
rm -f /etc/default-route
fi
}