Ticket #9239: 02-wrt160nl-led-fix.patch

File 02-wrt160nl-led-fix.patch, 644 bytes (added by magyarsz, 7 years ago)
  • target/linux/ar71xx/base-files/etc/uci-defaults/wrt160nl

    a b  
    1010wrt160nl_fixtrx() { 
    1111        mtd -o 32 fixtrx firmware 
    1212} 
     13wrt160nl_set_wlan_led() { 
     14        uci batch <<EOF 
     15set system.wlan_led=led 
     16set system.wlan_led.name='WLAN' 
     17set system.wlan_led.sysfs='wrt160nl:blue:wlan' 
     18set system.wlan_led.trigger='netdev' 
     19set system.wlan_led.dev='wlan0' 
     20set system.wlan_led.mode='link tx rx' 
     21 
     22commit system 
     23EOF 
     24} 
     25 
    1326 
    1427if [ "${board}" == "wrt160nl" ]; then 
    1528        wrt160nl_fixtrx 
     29        wrt160nl_set_wlan_led 
    1630fi