mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 17:42:41 +00:00
17 lines
325 B
Bash
Executable File
17 lines
325 B
Bash
Executable File
#!/bin/sh /etc/rc.common
|
|
|
|
START=99
|
|
|
|
boot() {
|
|
case $(board_name) in
|
|
edgecore,eap111|\
|
|
edgecore,eap112)
|
|
bootcount=$(fw_printenv -n bootcount)
|
|
[ "$bootcount" != 0 ] && fw_setenv bootcount 0
|
|
# enable dualboot
|
|
avail=$(fw_printenv -n upgrade_available)
|
|
[ ${avail} -eq 0 ] && fw_setenv upgrade_available 1
|
|
;;
|
|
esac
|
|
}
|