ramips: add support for ALFA Network Quad-E4G
[openwrt/openwrt.git] / target / linux / ramips / 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,ac1200rm|\
10 alfa-network,awusfree1|\
11 alfa-network,quad-e4g|\
12 alfa-network,r36m-e4g|\
13 alfa-network,tube-e4g)
14 [ -n "$(fw_printenv bootcount bootchanged 2>/dev/null)" ] &&\
15 echo -e "bootcount\nbootchanged\n" | /usr/sbin/fw_setenv -s -
16 ;;
17 sk-wb8)
18 fw_setenv bootcount 0
19 ;;
20 esac
21 }