Changeset 24648


Ignore:
Timestamp:
2010-12-17T18:10:16+01:00 (7 years ago)
Author:
juhosg
Message:

ar71xx: use usbdev trigger for USB LEDs by default

Location:
trunk/target/linux/ar71xx
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/base-files/etc/uci-defaults/tl-wr1043nd

    r20415 r24648  
    88board=$(ar71xx_board_name) 
    99 
    10 tlwr1043nd_set_wlan_led() { 
     10tlwr1043nd_setup_leds() { 
    1111        uci batch <<EOF 
    1212set system.wlan_led=led 
     
    1414set system.wlan_led.sysfs='tl-wr1043nd:green:wlan' 
    1515set system.wlan_led.trigger='phy0rx' 
     16set system.usb_led=led 
     17set system.usb_led.name='USB' 
     18set system.usb_led.sysfs='tl-wr1043nd:green:usb' 
     19set system.usb_led.trigger='usbdev' 
     20set system.usb_led.dev='1-1' 
     21set system.usb_led.interval='50' 
    1622commit system 
    1723EOF 
     
    1925 
    2026if [ "${board}" == "tl-wr1043nd" ]; then 
    21         tlwr1043nd_set_wlan_led 
     27        tlwr1043nd_setup_leds 
    2228fi 
  • trunk/target/linux/ar71xx/base-files/etc/uci-defaults/wndr3700

    r23878 r24648  
    1414set system.wan_led.name='WAN LED (green)' 
    1515set system.wan_led.default='0' 
     16set system.usb_led=led 
     17set system.usb_led.name='USB' 
     18set system.usb_led.sysfs='wndr3700:green:usb' 
     19set system.usb_led.trigger='usbdev' 
     20set system.usb_led.dev='1-1' 
     21set system.usb_led.interval='50' 
    1622commit system 
    1723EOF 
  • trunk/target/linux/ar71xx/base-files/etc/uci-defaults/wzr-hp-g300nh

    r24642 r24648  
    2222set system.@led[-1].dev='eth1' 
    2323set system.@led[-1].mode='link tx rx' 
     24add system led 
     25set system.@led[-1]='led' 
     26set system.@led[-1].name='USB' 
     27set system.@led[-1].sysfs='wzr-hp-g300nh:blue:usb' 
     28set system.@led[-1].trigger='usbdev' 
     29set system.@led[-1].dev='1-1' 
     30set system.@led[-1].interval='50' 
    2431commit system 
    2532EOF 
  • trunk/target/linux/ar71xx/generic/profiles/00-default.mk

    r24421 r24648  
    1111                kmod-ath9k kmod-usb-core kmod-usb-ohci kmod-usb2 swconfig \ 
    1212                vsc7385-ucode-ap83 vsc7385-ucode-pb44 vsc7395-ucode-ap83 \ 
    13                 vsc7395-ucode-pb44 wpad-mini uboot-ar71xx-nbg460n_550n_550nh 
     13                vsc7395-ucode-pb44 wpad-mini uboot-ar71xx-nbg460n_550n_550nh \ 
     14                kmod-ledtrig-usbdev 
    1415endef 
    1516 
Note: See TracChangeset for help on using the changeset viewer.