]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- local output for func internal vars
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 23 Jan 2009 15:03:35 +0000 (15:03 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Fri, 23 Jan 2009 15:03:35 +0000 (15:03 +0000)
svn-id: @10095

sysconfig/network-scripts/functions.network

index 483daaf6967d7b5f81bde31ddf437f261ef29d36..2389fb377ac128bfe0b84e7f05ab9d77b9a934f5 100644 (file)
@@ -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
This page took 0.134091 seconds and 4 git commands to generate.