Ticket #7984: wndr3700_wifi_leds.patch

File wndr3700_wifi_leds.patch, 1.2 KB (added by Mark Mentovai <mark@…>, 6 years ago)

Make WiFi LEDs blink for activity

  • target/linux/ar71xx/base-files/etc/uci-defaults/wndr3700

     
    77 
    88board=$(ar71xx_board_name) 
    99 
    10 wndr3700_set_wan_led() { 
     10wndr3700_set_wan_wifi_leds() { 
    1111        uci batch <<EOF 
    12 set system.wan_led=led 
     12set system.wan_led='led' 
    1313set system.wan_led.sysfs='wndr3700:green:wan' 
    1414set system.wan_led.name='WAN LED (green)' 
    1515set system.wan_led.default='0' 
     16set system.wifi_led_2ghz='led' 
     17set system.wifi_led_2ghz.sysfs='ath9k-phy0::radio' 
     18set system.wifi_led_2ghz.name='2.4GHz WiFi LED (green)' 
     19set system.wifi_led_2ghz.trigger='netdev' 
     20set system.wifi_led_2ghz.dev='wlan0' 
     21set system.wifi_led_2ghz.mode='link tx rx' 
     22set system.wifi_led_5ghz='led' 
     23set system.wifi_led_5ghz.sysfs='ath9k-phy1::radio' 
     24set system.wifi_led_5ghz.name='5GHz WiFi LED (blue)' 
     25set system.wifi_led_5ghz.trigger='netdev' 
     26set system.wifi_led_5ghz.dev='wlan1' 
     27set system.wifi_led_5ghz.mode='link tx rx' 
    1628commit system 
    1729EOF 
    1830} 
    1931 
    2032if [ "${board}" == "wndr3700" ]; then 
    21         wndr3700_set_wan_led 
     33        wndr3700_set_wan_wifi_leds 
    2234fi