abde12412a3cfa7fbe68b48e9f07b1443b8c4496
[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 mtd resetbc s_env || true
15 ;;
16 esac
17 }