eap104: Update the environment variable bootcount properly for EAP104

In the bootcount script there was no entry for Edgecore EAP104 to
set the bootcount. This commit adds support for Edgecore EAP104 in
bootcount script to set the environment variable correctly

Signed-off-by: Venkat Chimata <venkata@shasta.cloud>
This commit is contained in:
Venkat Chimata
2024-07-10 15:53:06 +05:30
committed by John Crispin
parent 4b50ff9798
commit 131a26bcc0

View File

@@ -7,5 +7,10 @@ boot() {
hfcl,ion4xi_w)
fw_setenv boot_count 0
;;
edgecore,eap104)
avail=$(fw_printenv -n upgrade_available)
[ "${avail}" -eq 0 ] && fw_setenv upgrade_available 1
fw_setenv bootcount 0
;;
esac
}