summaryrefslogtreecommitdiff
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-01-17 07:07:36 +0000
committerJohn Crispin <john@openwrt.org>2015-01-17 07:07:36 +0000
commit7a65864344b0515b740f42149d6c24ef0d1c775e (patch)
tree07118f2e86624108718182270263bf281f6bff1b /target/linux/ramips/base-files
parent03a708a0dbce4c63bb200661e1641f0f01f99e8d (diff)
downloadmtk-20170518-7a65864344b0515b740f42149d6c24ef0d1c775e.zip
mtk-20170518-7a65864344b0515b740f42149d6c24ef0d1c775e.tar.gz
mtk-20170518-7a65864344b0515b740f42149d6c24ef0d1c775e.tar.bz2
ralink: add support for Kingston MLWG2
This patch adds support for the Kingston Mobilelite Wireless G2 (MLWG2) http://wiki.openwrt.org/toh/kingston/mlwg2 https://github.com/gmacario/kingston-mlwg2-hack/wiki/Testing-OpenWrt-on-MLWG2 Tested-by: Gianpaolo Macario <gmacario@gmail.com> Signed-off-by: L. D. Pinney <ldpinney@gmail.com> SVN-Revision: 43990
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/01_leds4
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network3
-rwxr-xr-xtarget/linux/ramips/base-files/etc/diag.sh3
-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/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds
index c42b31f..dfd0ca7 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -130,6 +130,10 @@ case $board in
set_wifi_led "kingston:blue:wifi"
ucidef_set_led_default "system" "system" "kingston:blue:system" "1"
;;
+ mlwg2)
+ set_wifi_led "kingston:blue:wifi"
+ ucidef_set_led_default "system" "system" "kingston:blue:system" "1"
+ ;;
mofi3500-3gn)
set_usb_led "mofi3500-3gn:green:usb"
;;
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 a86466e..aad1197 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -61,6 +61,9 @@ ramips_setup_interfaces()
mlw221)
ucidef_set_interface_lan "eth0.2"
;;
+ mlwg2)
+ ucidef_set_interface_lan "eth0.1"
+ ;;
wizard8800 | \
wl-330n | \
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index 103dfcd..65ef0db 100755
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -88,6 +88,9 @@ get_status_led() {
mlw221)
status_led="kingston:blue:status"
;;
+ mlwg2)
+ status_led="kingston:blue:system"
+ ;;
mofi3500-3gn)
status_led="mofi3500-3gn:green:status"
;;
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index 540da33..379713b 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -187,6 +187,9 @@ ramips_board_detect() {
*"Kingston MLW221")
name="mlw221"
;;
+ *"Kingston MLWG2")
+ name="mlwg2"
+ ;;
*"Linksys E1700")
name="e1700"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 95cad63..b5eecfc 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -58,6 +58,7 @@ platform_check_image() {
m3 | \
m4 | \
mlw221 | \
+ mlwg2 | \
mofi3500-3gn | \
mpr-a1 | \
mpr-a2 | \