Root/target/linux/ar71xx/base-files/etc/uci-defaults/tl-mr3x20

1#!/bin/sh
2#
3# Copyright (C) 2010 OpenWrt.org
4#
5
6. /lib/ar71xx.sh
7
8board=$(ar71xx_board_name)
9
10tlmr3x20_setup_leds() {
11    uci batch <<EOF
12set system.usb_led=led
13set system.usb_led.name='USB'
14set system.usb_led.sysfs='tl-mr3x20:green:3g'
15set system.usb_led.trigger='usbdev'
16set system.usb_led.dev='1-1'
17set system.usb_led.interval='50'
18commit system
19EOF
20}
21
22case "${board}" in
23"tl-mr3220" | \
24"tl-mr3420" )
25    tlmr3x20_setup_leds
26    ;;
27esac
28

Archive Download this file



interactive