mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 09:32:34 +00:00
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>
17 lines
273 B
Bash
Executable File
17 lines
273 B
Bash
Executable File
#!/bin/sh /etc/rc.common
|
|
|
|
START=99
|
|
|
|
boot() {
|
|
case "$(board_name)" in
|
|
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
|
|
}
|