aboutsummaryrefslogtreecommitdiff
path: root/target/linux/ramips/mt7620/base-files/etc/init.d/bootcount
blob: 06316e48caec1905b770c80ea1913f0dceada9ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh /etc/rc.common

START=99

boot() {
	case $(board_name) in
	alfa-network,ac1200rm|\
	alfa-network,r36m-e4g|\
	alfa-network,tube-e4g)
		[ -n "$(fw_printenv bootcount bootchanged 2>/dev/null)" ] &&\
			echo -e "bootcount\nbootchanged\n" | /usr/sbin/fw_setenv -s -
		;;
	esac
}