From 68634426fee42803b4be956ef3ac262dee6f8384 Mon Sep 17 00:00:00 2001 From: perillamint Date: Fri, 18 Nov 2016 20:46:27 +0900 Subject: ramips: add support for WeVO W2914NS v2 Signed-off-by: Yong-hyu Ban --- target/linux/ramips/base-files/etc/board.d/01_leds | 3 +++ target/linux/ramips/base-files/etc/board.d/02_network | 1 + target/linux/ramips/base-files/lib/ramips.sh | 6 ++++++ target/linux/ramips/base-files/lib/upgrade/platform.sh | 1 + 4 files changed, 11 insertions(+) (limited to 'target/linux/ramips/base-files') 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 ed51555..f6dbf30 100755 --- a/target/linux/ramips/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/base-files/etc/board.d/01_leds @@ -303,6 +303,9 @@ vocore) ucidef_set_led_netdev "eth" "ETH" "$board:orange:eth" "eth0" set_wifi_led "$board:green:status" ;; +w2914nsv2) + set_usb_led "$board:green:usb" + ;; w502u) set_usb_led "$board:blue:usb" set_wifi_led "rt2800pci-phy0::radio" 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 5ae6413..e3e6550 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -87,6 +87,7 @@ ramips_setup_interfaces() sap-g3200u3|\ sk-wb8|\ vr500|\ + w2914nsv2|\ wf-2881|\ witi|\ wl-wn575a3|\ diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index 4a4204b..5c82188 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -13,6 +13,9 @@ ramips_board_detect() { machine=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /machine/ {print $2}' /proc/cpuinfo) case "$machine" in + *"11AC NAS Router") + name="w2914nsv2" + ;; *"3G150B") name="3g150b" ;; @@ -454,6 +457,9 @@ ramips_board_detect() { *"W150M") name="w150m" ;; + *"W2914NS v2") + name="w2914nsv2" + ;; *"W306R V2.0") name="w306r-v20" ;; diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index a7e9e19..7c63c1c 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -133,6 +133,7 @@ platform_check_image() { vocore|\ vr500|\ w150m|\ + w2914nsv2|\ w306r-v20|\ w502u|\ wf-2881|\ -- cgit v1.1