123456789101112131415161718192021222324252627282930313233343536373839 |
- From: Matthias Schiffer <mschiffer@universe-factory.net>
- Date: Fri, 13 Mar 2015 11:59:58 +0100
- Subject: 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.
- diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
- index 9e70397..ac7f787 100755
- --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
- +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
- @@ -262,6 +262,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
- @@ -380,6 +393,7 @@ ar71xx_board_detect() {
- ;;
- *"GL-CONNECT INET v1")
- name="gl-inet"
- + gl_inet_board_detect
- ;;
- *"EnGenius ESR1750")
- name="esr1750"
|