mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
ar71xx: add support for the Zcomax ZCN-1523H-2-8/5-16 boards
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22882 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
24
target/linux/ar71xx/base-files/etc/uci-defaults/zcn-1523h-2
Executable file
24
target/linux/ar71xx/base-files/etc/uci-defaults/zcn-1523h-2
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Copyright (C) 2010 OpenWrt.org
|
||||
#
|
||||
|
||||
. /lib/ar71xx.sh
|
||||
|
||||
board=$(ar71xx_board_name)
|
||||
|
||||
zcn_set_leds() {
|
||||
uci batch <<EOF
|
||||
set system.led_lan1='led'
|
||||
set system.led_lan1.name='lan1'
|
||||
set system.led_lan1.sysfs='zcn-1523h:green:lan1'
|
||||
set system.led_lan1.trigger='netdev'
|
||||
set system.led_lan1.dev='eth0'
|
||||
set system.led_lan1.mode='link tx rx'
|
||||
commit system
|
||||
EOF
|
||||
}
|
||||
|
||||
if [ "${board}" == "zcn-1523h-2" ]; then
|
||||
zcn_set_leds
|
||||
fi
|
||||
30
target/linux/ar71xx/base-files/etc/uci-defaults/zcn-1523h-5
Executable file
30
target/linux/ar71xx/base-files/etc/uci-defaults/zcn-1523h-5
Executable file
@@ -0,0 +1,30 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Copyright (C) 2010 OpenWrt.org
|
||||
#
|
||||
|
||||
. /lib/ar71xx.sh
|
||||
|
||||
board=$(ar71xx_board_name)
|
||||
|
||||
zcn_set_leds() {
|
||||
uci batch <<EOF
|
||||
set system.led_lan1='led'
|
||||
set system.led_lan1.name='lan1'
|
||||
set system.led_lan1.sysfs='zcn-1523h:green:lan1'
|
||||
set system.led_lan1.trigger='netdev'
|
||||
set system.led_lan1.dev='eth0'
|
||||
set system.led_lan1.mode='link tx rx'
|
||||
set system.led_lan2='led'
|
||||
set system.led_lan2.name='lan2'
|
||||
set system.led_lan2.sysfs='zcn-1523h:green:lan2'
|
||||
set system.led_lan2.trigger='netdev'
|
||||
set system.led_lan2.dev='eth1'
|
||||
set system.led_lan2.mode='link tx rx'
|
||||
commit system
|
||||
EOF
|
||||
}
|
||||
|
||||
if [ "${board}" == "zcn-1523h-5" ]; then
|
||||
zcn_set_leds
|
||||
fi
|
||||
Reference in New Issue
Block a user