604f88c396d8da3d6ff7c0794e2c2738b65e873c
[openwrt/staging/wigyori.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 esac
14 }