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

START=99

boot() {
	case $(board_name) in
	alfa-network,awusfree1)
		[ -n "$(fw_printenv bootcount bootchanged 2>/dev/null)" ] &&\
			echo -e "bootcount\nbootchanged\n" | /usr/sbin/fw_setenv -s -
		;;
	xiaomi,miwifi-nano)
		fw_setenv flag_boot_success 1
		;;
	esac
}