[solved] Disable LAN an WAN leds, but keeping WLAN leds

Hello,

Router is Netgear WNDR3700
LEDE Reboot 17.01.4

I use it as a Dumb AP.

I've bridged LAN and WAN to the same network interface.

Now, I would like to turn the LAN and WAN leds off, always.
I still want to keep the WLAN leds on when WiFi is on.

in /sys/class/leds, I have the following :

lrwxrwxrwx    1 root     root             0 Nov 12 12:40 ath9k-phy0 ->     ../../devices/pci0000:00/0000:00:11.0/leds/ath9k-phy0
lrwxrwxrwx    1 root     root             0 Nov 12 12:40 ath9k-phy1 -> ../../devices/pci0000:00/0000:00:12.0/leds/ath9k-phy1
lrwxrwxrwx    1 root     root             0 Jan  1  1970 netgear:green:power ->     ../../devices/platform/leds-gpio/leds/netgear:green:power
lrwxrwxrwx    1 root     root             0 Nov 12 12:04 netgear:green:usb ->     ../../devices/platform/wndr3700-led-usb/leds/netgear:green:usb
lrwxrwxrwx    1 root     root             0 Jan  1  1970 netgear:green:wan ->     ../../devices/platform/leds-gpio/leds/netgear:green:wan
lrwxrwxrwx    1 root     root             0 Jan  1  1970 netgear:green:wps ->     ../../devices/platform/leds-gpio/leds/netgear:green:wps
lrwxrwxrwx    1 root     root             0 Jan  1  1970 netgear:orange:power ->     ../../devices/platform/leds-gpio/leds/netgear:orange:power
lrwxrwxrwx    1 root     root             0 Jan  1  1970 netgear:orange:wps ->         ../../devices/platform/leds-gpio/leds/netgear:orange:wps

2 problems here :

  • When something is connected to the WAN interface, it is blinking orange, while the led for WAN in /sys/class/leds is green : netgear:green:wan
  • Nothing about the LAN leds

I'm almost sure I had successfully done this when running OpenWRT at the time, but I can't find the config in my backup.

Thanks for your help

Auto-reply : I found the answer here : https://forum.openwrt.org/viewtopic.php?id=27600 :

now, my /etc/config/network looks like this :

config switch_port                                                 
        option device 'switch0'                                    
# Port 1 controls the GREEN configuration of LEDs for              
# the switch and the section does not correspond to a real         
# switch port.                                                     
#                                                                  
# 0=LED off; 1=Collision/FDX; 2=Link/activity; 3=1000 Mb/s;        
# 4=100 Mb/s; 5=10 Mb/s; 6=1000 Mb/s+activity; 7=100 Mb/s+activity;
# 8=10 Mb/s+activity; 9=10/100 Mb/s+activity; 10: Fiber;           
# 11: Fault; 12: Link/activity(tx); 13: Link/activity(rx);         
# 14: Link (master); 15: separate register                         
                                                                   
        option port '1'                                            
        option led '0'                                             
                                                                   
config switch_port                                                 
        option device 'switch0'                                    
# Port 2 controls the ORANGE configuration of LEDs                 
# See the key above for switch port 1 for the meaning of the       
# 'led' setting below.                                             
                                                                   
        option port '2'                                            
        option led '0'                                             
                                                                   
config switch_port                                                 
        option device 'switch0'                                    
                                                                   
# Port 5 controls the configuration of the WAN                     
# section does not correspond to a real switch port.               
#                                                                  
# To toggle the use of green or orange LEDs for the WAN port,      
# see the LED setting for wndr3700:green:wan in /etc/config/system.
#                                                                  
# See the key above for switch port 1 for the meaning of the       
# 'led' setting below.                                             
                                                                   
        option port '5'                                            
        option led '0'