OpenWrt Forum Archive

Topic: Bug in led config

The content of this topic has been archived on 31 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I'm trying to make it so that the 5ghz WLAN LED is on or off, like I have the WAN LED configured.

But whatever I try, I can't get it to work.

Here is my LED config:

config led 'led_wan'
    option name 'WAN'
    option sysfs 'pca963x:shelby:white:wan'
    option trigger 'netdev'
    option dev 'eth0'
    option default '0'
    option mode 'link'

config led 'led_usb2'
    option name 'USB2'
    option sysfs 'pca963x:shelby:white:usb2'
    option trigger 'usbdev'
    option interval '50'
    option dev '1-1'
    option default '0'

config led 'led_usb3'
    option name 'USB3'
    option interval '50'
    option dev 'eth0'
    option sysfs 'pca963x:shelby:white:usb3_1'
    option default '0'
    option trigger 'usbdev'

config led 'led_wlan_5g'
    option default '0'
    option name 'WLAN_5g'
    option sysfs 'pca963x:shelby:white:wlan_5g'
    option trigger 'netdev'
    option dev 'wlan0'
    option mode 'link'

But whatever I try, the 5ghz WLAN LED still blinks like crazy.

Also, I have found that the web UI doesn't let one give the config a name (as in the name given after the "config led" statement").

Any help?

The discussion might have continued from here.