immortalwrt/target/linux/ipq807x/base-files/etc/init.d/bootcount
Tianling Shen d6bc08f96e
ipq807x: add stock layout variant for redmi ax6
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-01-18 22:51:56 +08:00

21 lines
437 B
Bash
Executable File

#!/bin/sh /etc/rc.common
START=99
boot() {
case $(board_name) in
edgecore,eap102)
fw_setenv upgrade_available 0
# Unset changed flag after sysupgrade complete
fw_setenv changed
;;
redmi,ax6-stock|\
xiaomi,ax3600-stock)
# OTA handling should not be used. Reset it just in case.
fw_setenv flag_ota_reboot 0
# Not strictly needed but useful to handle partition crash condition
fw_setenv flag_boot_success 1
;;
esac
}