Michael Pratt 07723492e9 ath79: improve factory.bin for some Senao devices
Some boards with firmware made with Senao SDK based on Linux 3.3
have the following lines in the OEM upgrade script at
/etc/fwupgrade.sh

	local append=""
	local CONF_TAR="/tmp/sysupgrade.tgz"
	[ -f "$CONF_TAR" ] && append="-j $CONF_TAR"

and

	\# check FWINFO filename
	[ -z $(ls FWINFO* | grep -i ${modelname}) ] && errcode="1"

This addition also prevents needing to factory reset after flashing
for some boards that also have these lines in the script

	\# Support downgrade but do default (Smart v2.x.x.x -> senaowrt v1.x.x.x)
	[ $(ls FWINFO* | grep -i ${modelname} | cut -d "-" -f4 | cut -c 2) -lt 2 ] && append=""

Signed-off-by: Michael Pratt <mcpratt@pm.me>
2022-03-13 19:54:57 +01:00
..
2022-03-05 21:05:45 +01:00
2022-02-17 11:08:58 +01:00
2022-03-13 19:24:13 +01:00
2021-11-08 15:56:39 +01:00
2022-03-13 19:24:13 +01:00
2022-02-27 14:41:28 +01:00
2022-03-11 08:02:30 +01:00
2022-02-01 23:34:07 +00:00
2022-03-11 00:04:05 +01:00
2022-02-11 14:24:01 +01:00
2022-02-05 14:39:20 +01:00
2022-02-01 23:34:07 +00:00
2022-03-01 21:38:36 +01:00
2022-03-10 23:31:05 +01:00