diff options
author | Bill Nottingham <notting@redhat.com> | 2003-09-11 04:07:22 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2003-09-11 04:07:22 +0000 |
commit | 6cb92ede4478eed4b416d05370475c5758f2a991 (patch) | |
tree | bc2efcc145e7a4244bea8dde4d5e92bf5c3ce252 /sysconfig/network-scripts/network-functions | |
parent | 0e33cecce10d566567b16c692fee21678d2c11c3 (diff) | |
download | initscripts-6cb92ede4478eed4b416d05370475c5758f2a991.tar initscripts-6cb92ede4478eed4b416d05370475c5758f2a991.tar.gz initscripts-6cb92ede4478eed4b416d05370475c5758f2a991.tar.bz2 initscripts-6cb92ede4478eed4b416d05370475c5758f2a991.tar.xz initscripts-6cb92ede4478eed4b416d05370475c5758f2a991.zip |
always call 'ip link set *dev* ${DEVICE}', to avoid confusion with
other ip parameters (#104187)
Diffstat (limited to 'sysconfig/network-scripts/network-functions')
-rw-r--r-- | sysconfig/network-scripts/network-functions | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index ad106fb3..0046f935 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -244,8 +244,8 @@ check_ethtool () check_link_down () { if [ -x /sbin/mii-tool -o -x /sbin/ethtool ]; then - if ! LC_ALL=C ip link show $1 2>/dev/null| grep -q UP ; then - ip link set $1 up >/dev/null 2>&1 + if ! LC_ALL=C ip link show dev $1 2>/dev/null| grep -q UP ; then + ip link set dev $1 up >/dev/null 2>&1 timeout=0 while [ $timeout -le 10 ]; do check_mii_tool $1 |