h69k/target/linux/ipq806x/base-files/etc/init.d/bootcount

26 lines
403 B
Plaintext
Raw Normal View History

2024-09-29 14:35:28 +00:00
#!/bin/sh /etc/rc.common
START=99
. "$IPKG_INSTROOT/lib/upgrade/asrock.sh"
boot() {
case $(board_name) in
asrock,g10)
asrock_bootconfig_mangle "bootcheck" && reboot
;;
edgecore,ecw5410)
fw_setenv bootcount 0
;;
linksys,ea7500-v1 |\
linksys,ea8500)
mtd resetbc s_env || true
;;
xiaomi,mi-router-hd)
fw_setenv boot_wait on
fw_setenv bootdelay 3
fw_setenv uart_en 1
;;
esac
}