base-files: bring back nand_do_upgrade_success
[openwrt/openwrt.git] / target / linux / ath79 / nand / base-files / etc / init.d / bootcount
1 #!/bin/sh /etc/rc.common
2 # SPDX-License-Identifier: GPL-2.0-only
3
4 START=99
5
6 boot() {
7 case $(board_name) in
8 glinet,gl-ar300m-nand)
9 fw_setenv bootcount 0
10 ;;
11 esac
12 }