[OpenWrt-Devel] [PATCH 2/3] ar71xx: add user-space support for EnGenius EPG5000.

Christian Beier cb at shoutrlabs.com
Thu Jun 18 11:55:40 EDT 2015


Signed-off-by: Christian Beier <cb at shoutrlabs.com>
---
 target/linux/ar71xx/base-files/etc/diag.sh                 | 3 +++
 target/linux/ar71xx/base-files/etc/uci-defaults/02_network | 3 ++-
 target/linux/ar71xx/base-files/lib/ar71xx.sh               | 3 +++
 target/linux/ar71xx/base-files/lib/upgrade/platform.sh     | 1 +
 4 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 0553251..8af4ae5 100644
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -89,6 +89,9 @@ get_status_led() {
 	gl-inet)
 		status_led="gl-connect:green:lan"
 		;;
+	epg5000)
+		status_led="epg5000:amber:power"
+		;;
 	esr1750)
 		status_led="esr1750:amber:power"
 		;;
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
index f5c6865..23d0be5 100644
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
@@ -30,7 +30,8 @@ wlr8100)
 	ucidef_add_switch_vlan "switch0" "2" "0t 1"
 	;;
 
-esr1750)
+esr1750 |\
+epg5000)
 	ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
 	ucidef_add_switch "switch0" "1" "1"
 	ucidef_add_switch_vlan "switch0" "1" "0t 2 3 4 5"
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index b13be1e..722af51 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -430,6 +430,9 @@ ar71xx_board_detect() {
 		name="gl-inet"
 		gl_inet_board_detect
 		;;
+	*"EnGenius EPG5000")
+		name="epg5000"
+		;;
 	*"EnGenius ESR1750")
 		name="esr1750"
 		;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index 3dbd91c..1908e5b 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -208,6 +208,7 @@ platform_check_image() {
 	dir-825-c1 | \
 	dir-835-a1 | \
 	dragino2 | \
+	epg5000 | \
 	esr1750 | \
 	esr900 | \
 	ew-dorin | \
-- 
2.1.4
_______________________________________________
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