source: trunk/target/linux/ar71xx/base-files/etc/uci-defaults/mzk-w04nu @ 28703

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

ar71xx: unify LED names on Planex boards

  • Property svn:executable set to *
File size: 415 bytes
Line 
1#!/bin/sh
2#
3# Copyright (C) 2010 OpenWrt.org
4#
5
6. /lib/ar71xx.sh
7
8board=$(ar71xx_board_name)
9
10mzk_w04nu_setup_leds() {
11        uci batch <<EOF
12set system.usb_led=led
13set system.usb_led.name='USB'
14set system.usb_led.sysfs='planex:green:usb'
15set system.usb_led.trigger='usbdev'
16set system.usb_led.dev='1-1'
17set system.usb_led.interval='50'
18commit system
19EOF
20}
21
22if [ "${board}" == "mzk-w04u" ]; then
23        mzk_w04nu_setup_leds
24fi
Note: See TracBrowser for help on using the repository browser.