summaryrefslogtreecommitdiff
path: root/target/linux
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-01-22 13:43:23 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-01-22 13:43:23 +0000
commite9d8deaaedf2d5040918d9b26bdb2b056354e17d (patch)
tree5fe7d219f63271ce4d6afd047040b6bb577e0694 /target/linux
parent8e662f28fe7d5ef31f749d7c6cb5aee5b33a6f28 (diff)
downloadmtk-20170518-e9d8deaaedf2d5040918d9b26bdb2b056354e17d.zip
mtk-20170518-e9d8deaaedf2d5040918d9b26bdb2b056354e17d.tar.gz
mtk-20170518-e9d8deaaedf2d5040918d9b26bdb2b056354e17d.tar.bz2
ramips: add sysled and sysupgrade to wr512-3gn
Patch from #10035. SVN-Revision: 29847
Diffstat (limited to 'target/linux')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/diag.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh3
2 files changed, 5 insertions, 1 deletions
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index 9e09e69..35cab28 100755
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -78,6 +78,9 @@ get_status_led() {
wl-351)
status_led="wl-351:amber:power"
;;
+ wr512-3gn)
+ status_led="wr512:green:wps"
+ ;;
esac
}
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 1906f56..b4826f5 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -30,7 +30,8 @@ platform_check_image() {
w502u |\
v22rw-2x2 | \
wli-tx4-ag300n | \
- whr-g300n)
+ whr-g300n |\
+ wr512-3gn)
[ "$magic" != "2705" ] && {
echo "Invalid image type."
return 1