difos/target/linux/qualcommax/ipq807x/base-files/etc/init.d/bootcount
Erik Servili 2758eebc76 qualcommax: ipq807x: Create working factory tar for WAX620 and WAX630.
Create factory tar for WAX620 and WAX630 which is accepted by the stock UI.
Must use 'Boot up Backup Firmware' button on stock upgrade page after install and reboot to swap partitions.

Signed-off-by: Erik Servili <serverror@serverror.com>
Link: https://github.com/openwrt/openwrt/pull/18334
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-03-26 09:52:41 +01:00

25 lines
405 B
Bash
Executable file

#!/bin/sh /etc/rc.common
START=99
boot() {
case $(board_name) in
edgecore,eap102|\
yuncore,ax880)
fw_setenv upgrade_available 0
# Unset changed flag after sysupgrade complete
fw_setenv changed
;;
linksys,mx4200v1|\
linksys,mx4200v2|\
linksys,mx4300|\
linksys,mx5300|\
linksys,mx8500)
mtd resetbc s_env || true
;;
netgear,wax620|\
netgear,wax630)
fw_setenv boot_count 0
;;
esac
}