source: trunk/target/linux/ar71xx/base-files/etc/uci-defaults/wndr3700 @ 25118

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

ar71xx: add support for the WNDR3700v2 board

Based on a patch by Mark Mentovai <mark@…>

  • Property svn:executable set to *
File size: 589 bytes
Line 
1#!/bin/sh
2#
3# Copyright (C) 2010 OpenWrt.org
4#
5
6. /lib/ar71xx.sh
7
8board=$(ar71xx_board_name)
9
10wndr3700_set_wan_led() {
11        uci batch <<EOF
12set system.wan_led=led
13set system.wan_led.sysfs='wndr3700:green:wan'
14set system.wan_led.name='WAN LED (green)'
15set 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'
22commit system
23EOF
24}
25
26if [ "${board}" == "wndr3700" -o "${board}" == "wndr3700v2" ]; then
27        wndr3700_set_wan_led
28fi
Note: See TracBrowser for help on using the repository browser.