summaryrefslogtreecommitdiff
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-03-04 16:09:11 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-03-04 16:09:11 +0000
commit44c8b396f990bb1e762e1f9cef9bca34b78dc9f7 (patch)
tree80ff29dbccf39f7fb2cf5edb3e07798aaf6172d3 /target/linux/ramips/base-files
parent8533636d2d106ed19c752239c866fc89bcefffc2 (diff)
downloadmtk-20170518-44c8b396f990bb1e762e1f9cef9bca34b78dc9f7.zip
mtk-20170518-44c8b396f990bb1e762e1f9cef9bca34b78dc9f7.tar.gz
mtk-20170518-44c8b396f990bb1e762e1f9cef9bca34b78dc9f7.tar.bz2
ramips: board support for Asus RT-N10+
[juhosg: fix indentation in platform scripts, and remove debug messages from 06_set_iface_mac] Signed-off-by: Patrick van Staveren <trick@vanstaveren.us> SVN-Revision: 30808
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/diag.sh3
-rw-r--r--target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom1
-rw-r--r--target/linux/ramips/base-files/lib/preinit/06_set_iface_mac4
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh1
5 files changed, 12 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index 26f0d1f..0a13ddb 100755
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -66,6 +66,9 @@ get_status_led() {
rt-n15)
status_led="rt-n15:blue:power"
;;
+ rt-n10-plus)
+ status_led="asus:green:wps"
+ ;;
rt-n56u)
status_led="asus:blue:power"
;;
diff --git a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
index eb756a5..148fda2 100644
--- a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
+++ b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
@@ -38,6 +38,7 @@ case "$FIRMWARE" in
rt2x00_eeprom_extract "devdata" 16384 272
;;
+ rt-n10-plus | \
rt-g32-b1)
rt2x00_eeprom_extract "devconf" 0 272
;;
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 66eb6b9..cb9c7ab 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
@@ -36,6 +36,10 @@ preinit_set_mac_address() {
mac=$(ramips_get_mac_binary board-nvram 65440)
ifconfig eth0 hw ether $mac 2>/dev/null
;;
+ rt-n10-plus)
+ mac=$(ramips_get_mac_binary devconf 4)
+ ifconfig eth0 hw ether $mac 2>/dev/null
+ ;;
esac
}
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index 728f525..3567209 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -98,6 +98,9 @@ ramips_board_name() {
*"RT-G32 B1")
name="rt-g32-b1"
;;
+ *"RT-N10+")
+ name="rt-n10-plus"
+ ;;
*"RT-N15")
name="rt-n15"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index a2f3513..1f6910d 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -27,6 +27,7 @@ platform_check_image() {
nw718 | \
omni-emb | \
rt-g32-b1 | \
+ rt-n10-plus | \
rt-n15 | \
rt-n56u | \
sl-r7205 | \