aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig')
-rw-r--r--sysconfig/network-scripts/network-functions6
1 files changed, 5 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index d4459a56..8b726a83 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -84,7 +84,11 @@ add_default_route ()
find_gateway_dev
if [ "${GATEWAY}" != "" -a "${GATEWAY}" != "none" -a "${GATEWAYDEV}" != "" ] ; then
if ! check_device_down ; then
- /sbin/route add default gw ${GATEWAY} ${GATEWAYDEV}
+ if [ "$GATEWAY" = "0.0.0.0" ]; then
+ /sbin/route add default ${GATEWAYDEV}
+ else
+ /sbin/route add default gw ${GATEWAY} ${GATEWAYDEV}
+ fi
fi
fi
}