From: Elan Ruusamäe Date: Fri, 23 Jan 2009 15:03:35 +0000 (+0000) Subject: - local output for func internal vars X-Git-Tag: 0.4.2.0~41 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;h=1e23492f0313d124f70f9fd56a08c35519115e70;p=projects%2Frc-scripts.git - local output for func internal vars svn-id: @10095 --- diff --git a/sysconfig/network-scripts/functions.network b/sysconfig/network-scripts/functions.network index 483daaf6..2389fb37 100644 --- a/sysconfig/network-scripts/functions.network +++ b/sysconfig/network-scripts/functions.network @@ -559,7 +559,7 @@ wireless_param() check_mii_tool () { [ -x /sbin/mii-tool ] || return 2 - output=$(LC_ALL=C mii-tool $1 2>&1) + local output=$(LC_ALL=C mii-tool $1 2>&1) echo $output | grep -q "link ok" && return 1 echo $output | grep -q "no link" && return 0 return 2 @@ -572,7 +572,7 @@ check_mii_tool () check_ethtool () { [ -x /sbin/ethtool ] || return 2 - output=$(LC_ALL=C ethtool $1 2>&1) + local output=$(LC_ALL=C ethtool $1 2>&1) echo $output | grep -q "Link detected: yes" && return 1 echo $output | grep -q "Link detected: no" && return 0 return 2 @@ -585,7 +585,7 @@ check_ethtool () check_iwconfig () { [ -x /sbin/iwconfig ] || return 2 - output=$(LC_ALL=C iwconfig "$1" 2>&1) + local output=$(LC_ALL=C iwconfig "$1" 2>&1) echo "$output" | grep -q "radio off" && return 0 # XXX why no 'radio on' check? return 2