diff options
Diffstat (limited to 'target/linux/ramips/base-files')
5 files changed, 21 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds index 83141dedd8..8ea464516c 100755 --- a/target/linux/ramips/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/base-files/etc/board.d/01_leds @@ -308,6 +308,12 @@ r6220) set_wifi_led "$board:green:wifi" set_usb_led "$board:green:usb" ;; +re350-v1) + ucidef_set_led_netdev "wifi2g" "Wifi 2.4G" "$board:blue:wifi2G" "wlan0" + ucidef_set_led_netdev "wifi5g" "Wifi 5G" "$board:blue:wifi5G" "wlan1" + ucidef_set_led_netdev "eth_act" "LAN act" "$board:green:eth_act" "eth0" "tx rx" + ucidef_set_led_switch "eth_link" "LAN link" "$board:green:eth_link" "switch0" "0x01" + ;; re6500) ucidef_set_led_default "power" "power" "$board:white:power" "1" ucidef_set_led_default "wifi" "wifi" "$board:orange:wifi" "1" diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network index d0f3fce135..5cc711949f 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -270,6 +270,10 @@ ramips_setup_interfaces() ucidef_add_switch "switch0" \ "1:lan:2" "2:lan:1" "4:wan" "6@eth0" ;; + re350-v1) + ucidef_add_switch "switch0" \ + "0:lan" "6@eth0" + ;; re6500) ucidef_add_switch "switch0" \ "0:lan:1" "1:lan:2" "2:lan:3" "3:lan:4" "6@eth0" diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index 1349c00b32..3933357aad 100644 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -119,6 +119,7 @@ get_status_led() { dap-1350|\ na930|\ pbr-m1|\ + re350-v1|\ rt-ac51u|\ rt-n13u|\ rt-n14u|\ diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index e2d7b07ecb..0fd871a5d6 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -427,6 +427,9 @@ ramips_board_detect() { *"RB750Gr3") name="rb750gr3" ;; + *"RE350 v1") + name="re350-v1" + ;; *"RE6500") name="re6500" ;; diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index 36469ca704..830e129115 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -253,6 +253,13 @@ platform_check_image() { # these boards use metadata images return 0 ;; + re350-v1) + [ "$magic" != "01000000" ] && { + echo "Invalid image type." + return 1 + } + return 0 + ;; ubnt-erx|\ ubnt-erx-sfp) nand_do_platform_check "$board" "$1" |