ramips: add support for ALFA Network R36M-E4G
[openwrt/staging/rmilecki.git] / target / linux / ramips / mt7620 / 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,ac1200rm|\
8 alfa-network,r36m-e4g|\
9 alfa-network,tube-e4g)
10 [ -n "$(fw_printenv bootcount bootchanged 2>/dev/null)" ] &&\
11 echo -e "bootcount\nbootchanged\n" | /usr/sbin/fw_setenv -s -
12 ;;
13 esac
14 }