21 lines
437 B
Bash
Executable File
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
|
|
}
|