source: trunk/target/linux/ar71xx/base-files/etc/uci-defaults/tl-wr1043nd @ 24648

Last change on this file since 24648 was 24648, checked in by juhosg, 5 years ago

ar71xx: use usbdev trigger for USB LEDs by default

File size: 569 bytes
Line 
1#!/bin/sh
2#
3# Copyright (C) 2010 OpenWrt.org
4#
5
6. /lib/ar71xx.sh
7
8board=$(ar71xx_board_name)
9
10tlwr1043nd_setup_leds() {
11        uci batch <<EOF
12set system.wlan_led=led
13set system.wlan_led.name='WLAN'
14set system.wlan_led.sysfs='tl-wr1043nd:green:wlan'
15set 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'
22commit system
23EOF
24}
25
26if [ "${board}" == "tl-wr1043nd" ]; then
27        tlwr1043nd_setup_leds
28fi
Note: See TracBrowser for help on using the repository browser.