diff options
Diffstat (limited to 'sysconfig/network-scripts/ifup-plip')
-rwxr-xr-x | sysconfig/network-scripts/ifup-plip | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysconfig/network-scripts/ifup-plip b/sysconfig/network-scripts/ifup-plip index c7c6bb88..dc766aa8 100755 --- a/sysconfig/network-scripts/ifup-plip +++ b/sysconfig/network-scripts/ifup-plip @@ -14,10 +14,10 @@ fi ifconfig ${DEVICE} ${IPADDR} pointopoint ${REMIP} route add -net ${NETWORK} netmask ${NETMASK} ${DEVICE} -# this is broken! it's only here to keep compatibility with old RH sytstems +# this is broken! it's only here to keep compatibility with old RH systems if [ "${GATEWAY}" != "" -a "${GATEWAY}" != "none" ] then - route add default gw ${GATEWAY} metric 1 ${DEVICE} + route add default gw ${GATEWAY} metric ${METRIC:-1} ${DEVICE} fi . /etc/sysconfig/network @@ -25,7 +25,7 @@ fi if [ "${GATEWAY}" != "" ]; then if [ "${GATEWAYDEV}" = "" -o "${GATEWAYDEV}" = "${DEVICE}" ]; then # set up default gateway - route add default gw ${GATEWAY} + route add default gw ${GATEWAY} ${METRIC:+metric $METRIC} fi fi |