From 6cb92ede4478eed4b416d05370475c5758f2a991 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 11 Sep 2003 04:07:22 +0000 Subject: always call 'ip link set *dev* ${DEVICE}', to avoid confusion with other ip parameters (#104187) --- sysconfig/network-scripts/network-functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sysconfig/network-scripts/network-functions') 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 -- cgit