X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Far71xx%2Fbase-files%2Flib%2Far71xx.sh;h=04fb716c424c631a2af0d456db922aa806bd2f09;hb=2a0fcc029ffb599c595013b40056bf261ccdff56;hp=52acc6b39edf0a9008248b3f510d6a3673f4a443;hpb=9358a8a798609a89e99fa002641164a918a7e3ac;p=openwrt%2Fopenwrt.git diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 52acc6b39e..04fb716c42 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -274,6 +274,19 @@ tplink_pharos_board_detect() { [ -n "$model" ] && AR71XX_MODEL="$model v$2" } +gl_inet_board_detect() { + local size="$(mtd_get_part_size 'firmware')" + + case "$size" in + 8192000) + AR71XX_MODEL='GL-iNet 6408A v1' + ;; + 16580608) + AR71XX_MODEL='GL-iNet 6416A v1' + ;; + esac +} + ar71xx_board_detect() { local machine local name @@ -401,6 +414,7 @@ ar71xx_board_detect() { ;; *"GL-CONNECT INET v1") name="gl-inet" + gl_inet_board_detect ;; *"EnGenius ESR1750") name="esr1750" @@ -738,7 +752,7 @@ ar71xx_board_detect() { *"TL-MR12U") name="tl-mr12u" ;; - *"TL-MR13U") + *"TL-MR13U v1") name="tl-mr13u" ;; *"Tube2H") @@ -771,6 +785,9 @@ ar71xx_board_detect() { *WPE72) name="wpe72" ;; + *WPJ558) + name="wpj558" + ;; *WNDAP360) name="wndap360" ;;