Skip to content

Commit

Permalink
eap104: Update the environment variable bootcount properly for EAP104
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Venkat Chimata committed Jul 10, 2024
1 parent a449f08 commit 0f13a6c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions feeds/ipq807x_v5.4/ipq50xx/base-files/etc/init.d/bootcount
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 0f13a6c

Please sign in to comment.