From: Travis Kemen Date: Thu, 25 Sep 2008 19:19:32 +0000 (+0000) Subject: add option to shutoff softled X-Git-Tag: reboot~25518 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b42c11bb48645f5dfcc6a43c6b3fcd38ab9e7197;p=openwrt%2Fstaging%2Fpepe2k.git add option to shutoff softled SVN-Revision: 12709 --- diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh index a3bab5b8f0..1f540a0f7e 100755 --- a/package/madwifi/files/lib/wifi/madwifi.sh +++ b/package/madwifi/files/lib/wifi/madwifi.sh @@ -182,6 +182,9 @@ enable_atheros() { config_get distance "$device" distance [ -n "$distance" ] && athctrl -i "$device" -d "$distance" >&- + config_get_bool softled "$device" softled 1 + [ -n "$softled" ] && sysctl -w dev."$device".softled="$softled" >&- + config_get txpwr "$vif" txpower [ -n "$txpwr" ] && iwconfig "$ifname" txpower "${txpwr%%.*}"