ipq40xx: Add support for Linksys EA8300 (Dallas)
[openwrt/staging/dedeckeh.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 }