diff options
author | Bill Nottingham <notting@redhat.com> | 2003-09-11 04:06:17 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2003-09-11 04:06:17 +0000 |
commit | cc183971840b8ca4ca07d135d65270416e7a1c92 (patch) | |
tree | 395e6d71a1ec9b65a927bbf605ecc1e5d399d347 /sysconfig/network-scripts/ifdown | |
parent | 3ba8b24b81d723b98a95a1fad5da90c409de6ddc (diff) | |
download | initscripts-cc183971840b8ca4ca07d135d65270416e7a1c92.tar initscripts-cc183971840b8ca4ca07d135d65270416e7a1c92.tar.gz initscripts-cc183971840b8ca4ca07d135d65270416e7a1c92.tar.bz2 initscripts-cc183971840b8ca4ca07d135d65270416e7a1c92.tar.xz initscripts-cc183971840b8ca4ca07d135d65270416e7a1c92.zip |
always call 'ip link set *dev* ${DEVICE}', to avoid confusion with
other ip parameters (#104187)
Diffstat (limited to 'sysconfig/network-scripts/ifdown')
-rwxr-xr-x | sysconfig/network-scripts/ifdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown index 9622f0ca..dafc25fe 100755 --- a/sysconfig/network-scripts/ifdown +++ b/sysconfig/network-scripts/ifdown @@ -45,7 +45,7 @@ if [ -x $OTHERSCRIPT ]; then fi if [ -n "${BRIDGE}" -a -x /usr/sbin/brctl ]; then - /sbin/ip link set ${DEVICE} down + /sbin/ip link set dev ${DEVICE} down /usr/sbin/brctl delif ${BRIDGE} ${DEVICE} exit 0 fi @@ -106,7 +106,7 @@ else fi if [ "${REALDEVICE}" = "${DEVICE}" ]; then - ip link set ${DEVICE} down + ip link set dev ${DEVICE} down fi [ "$retcode" = "0" ] && retcode=$? |