ipq40xx: add support for Linksys WHW01 v1
[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 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 linksys,whw01-v1)
15 mtd resetbc s_env || true
16 ;;
17 netgear,wac510)
18 fw_setenv boot_cnt=0
19 ;;
20 esac
21 }