aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-plip
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2012-04-20 14:13:37 -0400
committerBill Nottingham <notting@redhat.com>2012-04-20 14:13:37 -0400
commitc1d21f7c44405f0fd8bf5d18e6465a49177c070b (patch)
tree24340bfe26d72766ceb606d9d88d22d0c3bbfda8 /sysconfig/network-scripts/ifup-plip
parent55220bb2c9755037b80c73582bf8c963d6358516 (diff)
downloadinitscripts-c1d21f7c44405f0fd8bf5d18e6465a49177c070b.tar
initscripts-c1d21f7c44405f0fd8bf5d18e6465a49177c070b.tar.gz
initscripts-c1d21f7c44405f0fd8bf5d18e6465a49177c070b.tar.bz2
initscripts-c1d21f7c44405f0fd8bf5d18e6465a49177c070b.tar.xz
initscripts-c1d21f7c44405f0fd8bf5d18e6465a49177c070b.zip
Remove some more uses of /sbin/route ; replace with /sbin/ip. (#682308)
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