diff options
Diffstat (limited to 'target/linux/ar71xx/base-files/etc')
-rwxr-xr-x | target/linux/ar71xx/base-files/etc/diag.sh | 3 | ||||
-rwxr-xr-x | target/linux/ar71xx/base-files/etc/uci-defaults/zcn-1523h-2 | 24 | ||||
-rwxr-xr-x | target/linux/ar71xx/base-files/etc/uci-defaults/zcn-1523h-5 | 30 |
3 files changed, 57 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index 384bf032c..b1e1d2312 100755 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -108,6 +108,9 @@ get_status_led() { wzr-hp-g300nh) status_led="wzr-hp-g300nh:green:router" ;; + zcn-1523h-2 | zcn-1523h-5) + status_led="zcn-1523h:amber:init" + ;; esac; } diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/zcn-1523h-2 b/target/linux/ar71xx/base-files/etc/uci-defaults/zcn-1523h-2 new file mode 100755 index 000000000..4f7731635 --- /dev/null +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/zcn-1523h-2 @@ -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 diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/zcn-1523h-5 b/target/linux/ar71xx/base-files/etc/uci-defaults/zcn-1523h-5 new file mode 100755 index 000000000..c62f72f09 --- /dev/null +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/zcn-1523h-5 @@ -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 |