summaryrefslogtreecommitdiff
path: root/target/linux/ar71xx/base-files/lib
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2011-11-24 20:09:38 +0000
committerGabor Juhos <juhosg@openwrt.org>2011-11-24 20:09:38 +0000
commitc20d7378e5fda249b2723850937056a0c92a1f21 (patch)
tree213428c6597cd8954b3b1a47d6e85dddf4532157 /target/linux/ar71xx/base-files/lib
parent600b6efc41a2ae61a48335f86238349eb4918019 (diff)
downloadmtk-20170518-c20d7378e5fda249b2723850937056a0c92a1f21.zip
mtk-20170518-c20d7378e5fda249b2723850937056a0c92a1f21.tar.gz
mtk-20170518-c20d7378e5fda249b2723850937056a0c92a1f21.tar.bz2
ar71xx: fix wndr3800 machine name
This fixes the machine name in /proc/cpuinfo and luci status page machine name. Signed-off-by: Petri Rosenström <petri.rosenstrom@gmail.com> SVN-Revision: 29326
Diffstat (limited to 'target/linux/ar71xx/base-files/lib')
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh3
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh2
2 files changed, 4 insertions, 1 deletions
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 6ea97ed..513f0d2 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -169,6 +169,9 @@ ar71xx_board_name() {
*WNDR3700v2)
name="wndr3700v2"
;;
+ *WNDR3800)
+ name="wndr3800"
+ ;;
*WNR2000)
name="wnr2000"
;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index fd11366..cc327e6 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -133,7 +133,7 @@ platform_check_image() {
}
return 0
;;
- wndr3700v2)
+ wndr3700v2|wndr3800)
[ "$magic_long" != "33373031" ] && {
echo "Invalid image type."
return 1