aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-plip
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig/network-scripts/ifup-plip')
-rwxr-xr-xsysconfig/network-scripts/ifup-plip2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-plip b/sysconfig/network-scripts/ifup-plip
index 7f4f521e..c3b9efa1 100755
--- a/sysconfig/network-scripts/ifup-plip
+++ b/sysconfig/network-scripts/ifup-plip
@@ -21,7 +21,7 @@ ip route add ${NETWORK} dev ${DEVICE}
if [ "${GATEWAY}" != "" ]; then
if [ "${GATEWAYDEV}" = "" -o "${GATEWAYDEV}" = "${DEVICE}" ]; then
# set up default gateway
- route add default gw ${GATEWAY} ${METRIC:+metric $METRIC}
+ ip route replace default ${METRIC:+metric $METRIC} via ${GATEWAY}
fi
fi