From c1d21f7c44405f0fd8bf5d18e6465a49177c070b Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 20 Apr 2012 14:13:37 -0400 Subject: Remove some more uses of /sbin/route ; replace with /sbin/ip. (#682308) --- sysconfig/network-scripts/ifup-plip | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysconfig/network-scripts/ifup-plip') 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 -- cgit v1.2.1