Are you sure this is universally correct for all WNDRMAC units? It's
possible that the "N" there is actually variable, and part of something
else that shows up at that location in flash. `hexdump -C /dev/mtd5`
(assuming mtd5 is art in /proc/mtd) should help identify what that N is
actually doing, which in turn might indicate whether it's useful for
identifying the model or not.
Роман А. aka BasicXP wrote:
> This patch helps properly detect a WNDRMAC device. Before this patch the
> model is detected as "NETGEAR ?????????N".
>
> Signed-off-by: Roman A. aka BasicXP <[email protected]>
>
> ---
>
> Index: target/linux/ar71xx/base-files/lib/ar71xx.sh
> ===================================================================
> --- target/linux/ar71xx/base-files/lib/ar71xx.sh (revision 32267)
> +++ target/linux/ar71xx/base-files/lib/ar71xx.sh (working copy)
> @@ -41,6 +41,8 @@
> model=$(ar71xx_get_mtd_offset_size_format art 56 10 %c)
> if [ -z "$model" ] || [ "$model" =
> $'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff' ]; then
> machine="NETGEAR WNDR3700v2"
> + elif [ -z "$model" ] || [ "$model" =
> $'\xff\xff\xff\xff\xff\xff\xff\xff\xffN' ]; then
> + machine="NETGEAR WNDRMAC"
> else
> machine="NETGEAR $model"
> fi
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel