aboutsummaryrefslogtreecommitdiff
path: root/target/linux/ath79/nand/base-files/etc/init.d/bootcount
blob: 4d7a814f05a8c12469d162454b6b8c4ecd3b805f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh /etc/rc.common
# SPDX-License-Identifier: GPL-2.0-only

START=99

boot() {
	case $(board_name) in
	glinet,gl-ar300m-nand)
		fw_setenv bootcount 0
		;;
	linksys,ea4500-v3)
		[ $(fw_printenv -n auto_recovery) = yes ] && \
			fw_setenv auto_recovery no
		;;
	esac
}