diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2010-03-09 18:05:51 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2010-03-09 18:05:51 +0000 |
commit | 18ee1b6ddac6400d294b9a906f9d3f572b5fcf44 (patch) | |
tree | b5ad69774e3e6cb275096609c3bbe59b83ee7b37 /target/linux/ar71xx/base-files | |
parent | b21308313eeebf5cb429a3a2a19db9aaebc94de4 (diff) | |
download | mtk-20170518-18ee1b6ddac6400d294b9a906f9d3f572b5fcf44.zip mtk-20170518-18ee1b6ddac6400d294b9a906f9d3f572b5fcf44.tar.gz mtk-20170518-18ee1b6ddac6400d294b9a906f9d3f572b5fcf44.tar.bz2 |
ar71xx: add uci-defaults for the RB750 board
SVN-Revision: 20097
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rwxr-xr-x | target/linux/ar71xx/base-files/etc/uci-defaults/rb750 | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/rb750 b/target/linux/ar71xx/base-files/etc/uci-defaults/rb750 new file mode 100755 index 0000000..85c0635 --- /dev/null +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/rb750 @@ -0,0 +1,52 @@ +#!/bin/sh +# +# Copyright (C) 2010 OpenWrt.org +# + +. /lib/ar71xx.sh + +board=$(ar71xx_board_name) + +rb750_set_leds() { + uci batch <<EOF +set system.led_act='led' +set system.led_act.name='act' +set system.led_act.sysfs='rb750:green:act' +set system.led_act.default='1' +set system.led_port1='led' +set system.led_port1.name='port1' +set system.led_port1.sysfs='rb750:green:port1' +set system.led_port1.trigger='netdev' +set system.led_port1.dev=eth1 +set system.led_port1.mode='tx rx' +set system.led_port2='led' +set system.led_port2.name='port3' +set system.led_port2.sysfs='rb750:green:port2' +set system.led_port2.trigger='netdev' +set system.led_port2.dev=port2 +set system.led_port2.mode='link tx rx' +set system.led_port3='led' +set system.led_port3.name='port3' +set system.led_port3.sysfs='rb750:green:port3' +set system.led_port3.trigger='netdev' +set system.led_port3.dev=port3 +set system.led_port3.mode='link tx rx' +set system.led_port4='led' +set system.led_port4.name='port4' +set system.led_port4.sysfs='rb750:green:port4' +set system.led_port4.trigger='netdev' +set system.led_port4.dev=port4 +set system.led_port4.mode='link tx rx' +set system.led_port5='led' +set system.led_port5.name='port5' +set system.led_port5.sysfs='rb750:green:port5' +set system.led_port5.trigger='netdev' +set system.led_port5.dev=port5 +set system.led_port5.mode='link tx rx' +commit system +EOF +} + +if [ "${board}" == "rb-750" ]; then + rb750_set_leds +fi |