aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorperillamint <perillamint@gentoo.moe>2016-11-18 20:46:27 +0900
committerJohn Crispin <john@phrozen.org>2016-11-21 10:13:17 +0100
commit68634426fee42803b4be956ef3ac262dee6f8384 (patch)
tree45c0a77479457db44e27dffddcf2751d10ca49dd /target/linux/ramips/base-files
parenta74394be00f5b3f9d71f4d04c9e2ce6ea47a46b4 (diff)
downloadupstream-68634426fee42803b4be956ef3ac262dee6f8384.tar.gz
upstream-68634426fee42803b4be956ef3ac262dee6f8384.tar.bz2
upstream-68634426fee42803b4be956ef3ac262dee6f8384.zip
ramips: add support for WeVO W2914NS v2
Signed-off-by: Yong-hyu Ban <perillamint@gentoo.moe>
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/01_leds3
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network1
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh6
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh1
4 files changed, 11 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 ed51555d38..f6dbf30a58 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 5ae6413fcf..e3e65506a9 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 4a4204bc24..5c82188406 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 a7e9e19fa5..7c63c1cf3b 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|\