ramips: add support for ALFA Network Quad-E4G
[openwrt/openwrt.git] / target / linux / ramips / mt7621 / 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,quad-e4g)
8 [ -n "$(fw_printenv bootcount bootchanged 2>/dev/null)" ] &&\
9 echo -e "bootcount\nbootchanged\n" | /usr/sbin/fw_setenv -s -
10 ;;
11 samknows,whitebox-v8)
12 fw_setenv bootcount 0
13 ;;
14 esac
15 }