Author: blogic Date: 2015-03-17 10:43:13 +0100 (Tue, 17 Mar 2015) New Revision: 44860
Modified: trunk/target/linux/ar71xx/base-files/lib/ar71xx.sh Log: ar71xx: detect GL.iNet model There are two versions of the GL.iNet, the 6408A and the 6416A. The only difference is the flash size. Signed-off-by: Matthias Schiffer <[email protected]> Modified: trunk/target/linux/ar71xx/base-files/lib/ar71xx.sh =================================================================== --- trunk/target/linux/ar71xx/base-files/lib/ar71xx.sh 2015-03-17 09:43:07 UTC (rev 44859) +++ trunk/target/linux/ar71xx/base-files/lib/ar71xx.sh 2015-03-17 09:43:13 UTC (rev 44860) @@ -274,6 +274,19 @@ [ -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 @@ ;; *"GL-CONNECT INET v1") name="gl-inet" + gl_inet_board_detect ;; *"EnGenius ESR1750") name="esr1750" _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
