星期五, 4月 01, 2016

config led wlan_led

https://lists.openwrt.org/pipermail/openwrt-users/2015-March/003538.html

nesday, February 18, 2015 11:13:01 PM MSK, Farid Farid wrote:
> Hi Everyone,
> I have a question about LED pattern for WIFI. I am using 
> Openwrt Barrier Breaker - kernel 3-10-xx
> Is there anyway to tie a GPIO' Led to hostapd or wpa_supplicant 
> in order to have proper LED pattern for WIFI?Do these utility 
> drive any GPIO ?
> I am using hostapd-20130807
> And  another question :
> I know there is LED support in Kernel  ( kmod-leds) . In my 
> system I do have all LEDs defined in /sys/class/gpio/gpioxx/
> How can I map kernel LED driver on  my LED lines?

For my router I've put this into /etc/config/system:

config led wlan_led
        option name 'WLAN'
        option sysfs 'bcm47xx:blue:wlan'
        option trigger 'netdev'
        option dev 'wlan0'
        option mode 'link tx rx'

You should replace with your LED's name from /sys.


沒有留言: