summaryrefslogtreecommitdiff
path: root/target/linux/apm821xx/base-files/etc
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/apm821xx/base-files/etc')
-rwxr-xr-xtarget/linux/apm821xx/base-files/etc/board.d/01_leds8
-rwxr-xr-xtarget/linux/apm821xx/base-files/etc/board.d/02_network3
-rwxr-xr-xtarget/linux/apm821xx/base-files/etc/diag.sh15
3 files changed, 16 insertions, 10 deletions
diff --git a/target/linux/apm821xx/base-files/etc/board.d/01_leds b/target/linux/apm821xx/base-files/etc/board.d/01_leds
index 38cfbdc..ad9bef9c 100755
--- a/target/linux/apm821xx/base-files/etc/board.d/01_leds
+++ b/target/linux/apm821xx/base-files/etc/board.d/01_leds
@@ -16,6 +16,14 @@ mr24)
ucidef_set_led_wlan "wlan4" "WLAN4" "mr24:green:wifi4" "phy0tpt"
;;
+mx60)
+ ucidef_set_led_switch "wan" "WAN" "mx60:green:wan" "switch0" "0x20"
+ ucidef_set_led_switch "lan1" "LAN1" "mx60:green:lan1" "switch0" "0x10"
+ ucidef_set_led_switch "lan2" "LAN2" "mx60:green:lan2" "switch0" "0x08"
+ ucidef_set_led_switch "lan3" "LAN3" "mx60:green:lan3" "switch0" "0x04"
+ ucidef_set_led_switch "lan4" "LAN4" "mx60:green:lan4" "switch0" "0x02"
+ ;;
+
mbl)
ucidef_set_led_ide "sata" "SATA" "mbl:blue:power"
;;
diff --git a/target/linux/apm821xx/base-files/etc/board.d/02_network b/target/linux/apm821xx/base-files/etc/board.d/02_network
index 3a25709..90a8c1a 100755
--- a/target/linux/apm821xx/base-files/etc/board.d/02_network
+++ b/target/linux/apm821xx/base-files/etc/board.d/02_network
@@ -9,11 +9,12 @@ board_config_update
board=$(apm821xx_board_name)
case "$board" in
-mbl | \
+mbl|\
mr24)
ucidef_set_interface_lan "eth0"
;;
+mx60|\
wndr4700)
ucidef_add_switch "switch0" \
"0@eth0" "4:lan" "3:lan" "2:lan" "1:lan" "5:wan"
diff --git a/target/linux/apm821xx/base-files/etc/diag.sh b/target/linux/apm821xx/base-files/etc/diag.sh
index 3ddd21d..3e480f1 100755
--- a/target/linux/apm821xx/base-files/etc/diag.sh
+++ b/target/linux/apm821xx/base-files/etc/diag.sh
@@ -4,17 +4,14 @@
. /lib/apm821xx.sh
get_status_led() {
- case $(apm821xx_board_name) in
- mbl)
- status_led="mbl:green:power"
- ;;
-
- mr24)
- status_led="mr24:green:power"
- ;;
+ local board=$(apm821xx_board_name)
+ case $board in
+ mbl|\
+ mr24|\
+ mx60|\
wndr4700)
- status_led="wndr4700:green:power"
+ status_led="$board:green:power"
;;
*)