aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2013-08-01 14:30:58 +0000
committerJohn Crispin <john@openwrt.org>2013-08-01 14:30:58 +0000
commit0dc3b44b0de4aee29a9de9b8f24f302e4d08d7a3 (patch)
tree7bcbb73dd8651f219c94fb2a86e073294344c51a /target/linux/ramips/base-files
parent23d3b705df405e36b07253f9d16f2fb7757f03f0 (diff)
downloadupstream-0dc3b44b0de4aee29a9de9b8f24f302e4d08d7a3.tar.gz
upstream-0dc3b44b0de4aee29a9de9b8f24f302e4d08d7a3.tar.bz2
upstream-0dc3b44b0de4aee29a9de9b8f24f302e4d08d7a3.zip
ramips: add Poray M4 4M/8M support
Signed-off-by: Felix Kaechele <heffer@fedoraproject.org> SVN-Revision: 37637
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/diag.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/etc/uci-defaults/02_network3
-rw-r--r--target/linux/ramips/base-files/lib/preinit/06_set_iface_mac3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh1
5 files changed, 11 insertions, 2 deletions
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index a68538b2f7..57c8beb6c2 100755
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -55,6 +55,9 @@ get_status_led() {
m3)
status_led="m3:blue:status"
;;
+ m4)
+ status_led="m4:blue:status"
+ ;;
mofi3500-3gn)
status_led="mofi3500-3gn:green:status"
;;
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/02_network b/target/linux/ramips/base-files/etc/uci-defaults/02_network
index 307330b063..133c2decb9 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ramips/base-files/etc/uci-defaults/02_network
@@ -226,7 +226,8 @@ ramips_setup_macs()
wan_mac=$(macaddr_add "$lan_mac" 1)
;;
- m3)
+ m3 |\
+ m4)
lan_mac=$(mtd_get_mac_binary factory 4)
lan_mac=$(macaddr_add "$lan_mac" -1)
;;
diff --git a/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac b/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac
index 86c19b0b81..f9aabd5c4e 100644
--- a/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac
+++ b/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac
@@ -75,7 +75,8 @@ preinit_set_mac_address() {
mac=$(mtd_get_mac_binary factory 40)
ifconfig eth0 hw ether $mac 2>/dev/null
;;
- m3)
+ m3 |\
+ m4)
mac=$(mtd_get_mac_binary factory 4)
mac=$(macaddr_add "$mac" -1)
ifconfig eth0 hw ether $mac 2>/dev/null
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index 7afa707363..e3776f1304 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -151,6 +151,9 @@ ramips_board_detect() {
*"Poray M3")
name="m3"
;;
+ *"Poray M4")
+ name="m4"
+ ;;
*"PWH2004")
name="pwh2004"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 4ac86e97e0..5e1a7a5651 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -45,6 +45,7 @@ platform_check_image() {
hw550-3g | \
hg255d | \
m3 | \
+ m4 | \
mofi3500-3gn | \
mpr-a1 | \
mpr-a2 | \