aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/network-functions
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-09-11 04:06:17 +0000
committerBill Nottingham <notting@redhat.com>2003-09-11 04:06:17 +0000
commitcc183971840b8ca4ca07d135d65270416e7a1c92 (patch)
tree395e6d71a1ec9b65a927bbf605ecc1e5d399d347 /sysconfig/network-scripts/network-functions
parent3ba8b24b81d723b98a95a1fad5da90c409de6ddc (diff)
downloadinitscripts-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/network-functions')
-rw-r--r--sysconfig/network-scripts/network-functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index a6bbf1de..13f7919f 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -247,8 +247,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