diff options
author | Bill Nottingham <notting@redhat.com> | 2001-08-09 03:42:16 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2001-08-09 03:42:16 +0000 |
commit | 8a998885175388ada90c32ed06000e22648d5b18 (patch) | |
tree | 94aee0ed42abc1789606d2f3d47a20642d2bde86 /sysconfig/network-scripts/ifup | |
parent | ae0f713b19cce1f749b2d3e4011c6561e4854654 (diff) | |
download | initscripts-8a998885175388ada90c32ed06000e22648d5b18.tar initscripts-8a998885175388ada90c32ed06000e22648d5b18.tar.gz initscripts-8a998885175388ada90c32ed06000e22648d5b18.tar.bz2 initscripts-8a998885175388ada90c32ed06000e22648d5b18.tar.xz initscripts-8a998885175388ada90c32ed06000e22648d5b18.zip |
switch some more things to /sbin/ip; allow adding back of default route for DHCP devices (#48994)
Diffstat (limited to 'sysconfig/network-scripts/ifup')
-rwxr-xr-x | sysconfig/network-scripts/ifup | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup index 7bc43c4c..093b093c 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -233,10 +233,10 @@ else if [ -z "${GATEWAYDEV}" -o "${GATEWAYDEV}" = "${DEVICE}" ]; then # set up default gateway if [ -n "${GATEWAY}" -a "`ipcalc --network ${GATEWAY} ${NETMASK} 2>/dev/null`" = "NETWORK=${NETWORK}" ]; then - route add default gw ${GATEWAY} ${DEVICE} + ip route add default via ${GATEWAY} DEFGW=${GATEWAY} elif [ "${GATEWAYDEV}" = "${DEVICE}" ]; then - route add default ${DEVICE} + ip route add default dev ${DEVICE} fi fi fi |