SVN: rc-scripts/trunk/sysconfig/network-scripts/functions.network

glen glen at pld-linux.org
Fri Jan 23 16:03:36 CET 2009


Author: glen
Date: Fri Jan 23 16:03:35 2009
New Revision: 10095

Modified:
   rc-scripts/trunk/sysconfig/network-scripts/functions.network
Log:
- local output for func internal vars

Modified: rc-scripts/trunk/sysconfig/network-scripts/functions.network
==============================================================================
--- rc-scripts/trunk/sysconfig/network-scripts/functions.network	(original)
+++ rc-scripts/trunk/sysconfig/network-scripts/functions.network	Fri Jan 23 16:03:35 2009
@@ -559,7 +559,7 @@
 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_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_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


More information about the pld-cvs-commit mailing list