diff options
author | Henryk Heisig <hyniu@o2.pl> | 2016-06-24 13:08:55 +0200 |
---|---|---|
committer | Zoltan HERPAI <wigyori@uid0.hu> | 2016-06-24 13:08:55 +0200 |
commit | 850993467c17168c49723076f8caf8b29ba69d7f (patch) | |
tree | 0a84ac6c6c87ae769cdb2ad13f440fc173ae25ab /target/linux | |
parent | 580b518fae484dfe8fcc2ed96727918732662986 (diff) | |
download | master-187ad058-850993467c17168c49723076f8caf8b29ba69d7f.tar.gz master-187ad058-850993467c17168c49723076f8caf8b29ba69d7f.tar.bz2 master-187ad058-850993467c17168c49723076f8caf8b29ba69d7f.zip |
ramips/base-files: Add support for Archer C50
Signed-off-by: Henryk Heisig <hyniu@o2.pl>
Diffstat (limited to 'target/linux')
5 files changed, 16 insertions, 1 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 5fca5d6c8a..3aac1e45f5 100755 --- a/target/linux/ramips/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/base-files/etc/board.d/01_leds @@ -78,6 +78,13 @@ broadway) set_usb_led "$board:red:diskmounted" set_wifi_led "$board:red:wps_active" ;; +c50) + ucidef_set_led_default "power" "power" "tp-link:blue:power" "0" + ucidef_set_led_netdev "lan" "lan" "tp-link:blue:lan" "eth0.2" + set_usb_led "tp-link:blue:usb" + ucidef_set_led_wlan "wlan2g" "wlan2g" "tp-link:blue:wlan2g" "phy1radio" + ucidef_set_led_wlan "wlan5g" "wlan5g" "tp-link:blue:wlan5g" "phy0radio" + ;; cf-wr800n) ucidef_set_led_netdev "lan" "lan" "$board:white:ethernet" eth0.1 set_wifi_led "$board:white:wifi" 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 6807eede31..be1912a1b0 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -113,6 +113,7 @@ ramips_setup_interfaces() atp-52b|\ awm002-evb|\ awm003-evb|\ + c50|\ dir-645|\ dir-860l-b1|\ f5d8235-v1|\ diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index 7e5688642c..0c5abb2861 100644 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -83,6 +83,9 @@ get_status_led() { wrh-300cr) status_led="$board:green:wps" ;; + c50) + status_led="tp-link:blue:power" + ;; cf-wr800n|\ psg1208) status_led="$board:white:wps" diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index 567e5066f8..bd4f33d3d5 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -82,6 +82,9 @@ ramips_board_detect() { *"C20i") name="c20i" ;; + *"C50") + name="c50" + ;; *"Carambola") name="carambola" ;; diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index c71fc64917..0b3d8c7406 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -182,7 +182,8 @@ platform_check_image() { } return 0 ;; - c20i) + c20i|\ + c50) [ "$magic" != "03000000" ] && { echo "Invalid image type." return 1 |