Author: glen
Date: Wed Jun  3 08:29:46 2009
New Revision: 10369

Modified:
   rc-scripts/trunk/sysconfig/network-scripts/functions.network
Log:
- one local should be enough

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        Wed Jun 
 3 08:29:46 2009
@@ -576,12 +576,13 @@
 # 2 - unsupported
 check_iwconfig ()
 {
+       local output
        [ -x /sbin/iwconfig ] || return 2
-       local output=$(LC_ALL=C iwconfig "$1" 2>&1)
+       output=$(LC_ALL=C iwconfig "$1" 2>&1)
        # "radio off" is ipwxxx only "feature" (and there is no "radio on")
        echo "$output" | grep -q "radio off" && return 0
        # rfkill state (are there devices with multiple rfkill buttons?)
-       local output=$(cat /sys/class/net/${1}/device/rfkill*/state 2> 
/dev/null)
+       output=$(cat /sys/class/net/${1}/device/rfkill*/state 2> /dev/null)
        # 1 is rfkill not active
        [ "$output" = "1" ] && return 1
        [ "$output" = "0" -o "$output" = "2" ] && return 0
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to