mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 02:34:06 +02:00
ar71xx: add uci-defaults for the RB750 board
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20097 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
1842195b3e
commit
d8bd37df34
52
target/linux/ar71xx/base-files/etc/uci-defaults/rb750
Executable file
52
target/linux/ar71xx/base-files/etc/uci-defaults/rb750
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user