source: trunk/target/linux/ar71xx/base-files/etc/uci-defaults/wzr-hp-g300nh @ 24648

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

ar71xx: use usbdev trigger for USB LEDs by default

  • Property svn:executable set to *
File size: 857 bytes
Line 
1#!/bin/sh
2#
3# Copyright (C) 2010 OpenWrt.org
4#
5
6. /lib/ar71xx.sh
7
8board=$(ar71xx_board_name)
9
10wzrhpg300nh_set_leds() {
11        uci batch <<EOF
12add system led
13set system.@led[-1]='led'
14set system.@led[-1].name='Wireless'
15set system.@led[-1].sysfs='wzr-hp-g300nh:green:wireless'
16set system.@led[-1].trigger='phy0tpt'
17add system led
18set system.@led[-1]='led'
19set system.@led[-1].name='Router'
20set system.@led[-1].sysfs='wzr-hp-g300nh:green:router'
21set system.@led[-1].trigger='netdev'
22set system.@led[-1].dev='eth1'
23set 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'
31commit system
32EOF
33}
34
35if [ "${board}" == "wzr-hp-g300nh" ]; then
36        wzrhpg300nh_set_leds
37fi
Note: See TracBrowser for help on using the repository browser.