aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-07-26 20:36:22 +0000
committerJohn Crispin <john@openwrt.org>2014-07-26 20:36:22 +0000
commit5b4abf87d70f817e7796f75d9241d00f9c6fbbf0 (patch)
treefe6b998074491a03b2ee82fed457d11f4b0ac5f3 /target/linux/ramips/base-files
parent3c9cfbeebd191844e60e4110cc6a5f8cbe452677 (diff)
downloadupstream-5b4abf87d70f817e7796f75d9241d00f9c6fbbf0.tar.gz
upstream-5b4abf87d70f817e7796f75d9241d00f9c6fbbf0.tar.bz2
upstream-5b4abf87d70f817e7796f75d9241d00f9c6fbbf0.zip
ramips: add support for Kingston MLW221
This patch adds support for the Kingston Mobilelite Wireless (MLW-221) http://wiki.openwrt.org/toh/kingston/mlw221 Signed-off-by: L. D. Pinney <ldpinney@gmail.com> SVN-Revision: 41841
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/01_leds3
-rwxr-xr-xtarget/linux/ramips/base-files/etc/uci-defaults/02_network4
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh1
5 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index 908547e50e..088760652a 100755
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -73,6 +73,9 @@ get_status_led() {
m4)
status_led="m4:blue:status"
;;
+ mlw221)
+ status_led="kingston:green:status"
+ ;;
mofi3500-3gn)
status_led="mofi3500-3gn:green:status"
;;
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/01_leds b/target/linux/ramips/base-files/etc/uci-defaults/01_leds
index 19ec4f5904..359281efa9 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ramips/base-files/etc/uci-defaults/01_leds
@@ -113,6 +113,9 @@ case $board in
hw550-3g)
set_usb_led "hw550-3g:green:usb"
;;
+ mlw221)
+ set_wifi_led "kingston:blue:wifi"
+ ;;
mofi3500-3gn)
set_usb_led "mofi3500-3gn:green:usb"
;;
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 f65388f613..40c60fee5c 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ramips/base-files/etc/uci-defaults/02_network
@@ -51,6 +51,10 @@ ramips_setup_interfaces()
;;
3g-6200nl | \
+ mlw221)
+ ucidef_set_interface_lan "eth0.2"
+ ;;
+
wl-330n | \
wmr300)
ucidef_set_interface_lan "eth0.1"
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index ff3c2a5e5d..f7e04b7391 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -160,6 +160,9 @@ ramips_board_detect() {
*"HAME MPR-A2")
name="mpr-a2"
;;
+ *"Kingston MLW221")
+ name="mlw221"
+ ;;
*"Planex MZK-750DHP")
name="mzk-750dhp"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 1ab3ab510f..4a70691084 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -55,6 +55,7 @@ platform_check_image() {
ip2202 | \
m3 | \
m4 | \
+ mlw221 | \
mofi3500-3gn | \
mpr-a1 | \
mpr-a2 | \