f2d76f125f33f5172c465ad2eb10b83db104654c
[openwrt/staging/chunkeey.git] / target / linux / ipq40xx / base-files / etc / init.d / bootcount
1 #!/bin/sh /etc/rc.common
2
3 START=99
4
5 start() {
6 . /lib/functions.sh
7
8 case $(board_name) in
9 alfa-network,ap120c-ac)
10 [ -n "$(fw_printenv bootcount changed 2>/dev/null)" ] &&\
11 echo -e "bootcount\nchanged\n" | /usr/sbin/fw_setenv -s -
12 ;;
13 linksys,ea6350v3|\
14 linksys,ea8300)
15 mtd resetbc s_env || true
16 ;;
17 esac
18 }