use config_get_bool for outdoor mode
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 6 May 2009 12:12:29 +0000 (12:12 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 6 May 2009 12:12:29 +0000 (12:12 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15634 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/madwifi/files/lib/wifi/madwifi.sh

index 2fe8664..a3cf4d7 100755 (executable)
@@ -75,8 +75,7 @@ enable_atheros() {
        [ -z "$country" ] && country="0"
        echo "$country" > /proc/sys/dev/$device/countrycode
 
-       config_get outdoor "$device" outdoor
-       [ -z "$outdoor" ] && outdoor="0"
+       config_get_bool outdoor "$device" outdoor "0"
        echo "$outdoor" > /proc/sys/dev/$device/outdoor
 
        config_get channel "$device" channel
This page took 0.020453 seconds and 4 git commands to generate.