ipq40xx: Add support for Linksys MR8300 (Dallas)
[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 boot() {
6 case $(board_name) in
7 alfa-network,ap120c-ac)
8 [ -n "$(fw_printenv bootcount changed 2>/dev/null)" ] &&\
9 echo -e "bootcount\nchanged\n" | /usr/sbin/fw_setenv -s -
10 ;;
11 linksys,ea6350v3|\
12 linksys,ea8300|\
13 linksys,mr8300)
14 mtd resetbc s_env || true
15 ;;
16 esac
17 }