[OpenWrt-Devel] [PATCH 5/6] ramips: Add JCG routers to base-files

reinhard at m4x.de reinhard at m4x.de
Thu Mar 3 10:49:41 EST 2016


From: Reinhard Max <reinhard at m4x.de>

This patch adds support for JHR-N805R, JHR-N825R and JHR-N926R to
various scripts in the base-files directory.

Signed-off-by: Reinhard Max <reinhard at m4x.de>
Reviewed-by: Torsten Duwe <duwe at lst.de>
---
 target/linux/ramips/base-files/etc/board.d/02_network  | 3 +++
 target/linux/ramips/base-files/etc/diag.sh             | 3 +++
 target/linux/ramips/base-files/lib/ramips.sh           | 9 +++++++++
 target/linux/ramips/base-files/lib/upgrade/platform.sh | 3 +++
 4 files changed, 18 insertions(+)

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 0a680d0..2312811 100644
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -114,6 +114,9 @@ ramips_setup_interfaces()
 	f5d8235-v1|\
 	f5d8235-v2|\
 	hg255d|\
+	jhr-n805r|\
+	jhr-n825r|\
+	jhr-n926r|\
 	rt-n14u|\
 	ubnt-erx|\
 	ur-326n4g|\
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index c7c7815..daa7fb1 100644
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -36,6 +36,7 @@ get_status_led() {
 	dcs-930l-b1|\
 	ex2700|\
 	hlk-rm04|\
+	jhr-n825r|\
 	mpr-a1|\
 	mpr-a2)
 		status_led="$board:red:power"
@@ -109,6 +110,8 @@ get_status_led() {
 		status_led="$board:orange:status"
 		;;
 	hc5*61|\
+	jhr-n805r|\
+	jhr-n926r|\
 	mlw221|\
 	mlwg2)
 		status_led="$board:blue:system"
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index c4eb357..5f293be 100644
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -202,6 +202,15 @@ ramips_board_detect() {
 	*"IP2202")
 		name="ip2202"
 		;;
+	*"JHR-N805R")
+		name="jhr-n805r"
+		;;
+	*"JHR-N825R")
+		name="jhr-n825r"
+		;;
+	*"JHR-N926R")
+		name="jhr-n926r"
+		;;
 	*"M3")
 		name="m3"
 		;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index df1eded..7812f04 100644
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -63,6 +63,9 @@ platform_check_image() {
 	ht-tm02|\
 	hw550-3g|\
 	ip2202|\
+	jhr-n805r|\
+	jhr-n825r|\
+	jhr-n926r|\
 	linkits7688|\
 	linkits7688d|\
 	m2m|\
-- 
2.6.2
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list