ramips: support dual image feature on ALFA Network boards
[openwrt/openwrt.git] / target / linux / ramips / mt76x8 / base-files / etc / init.d / bootcount
index 0d64deb9e0eb0d6d86c41edf7a7eca2095b8ed46..3c21433cc55a9b32dcc0160d6f755144fadc4af1 100755 (executable)
@@ -4,6 +4,10 @@ START=99
 
 boot() {
        case $(board_name) in
+       alfa-network,awusfree1)
+               [ -n "$(fw_printenv bootcount bootchanged 2>/dev/null)" ] &&\
+                       echo -e "bootcount\nbootchanged\n" | /usr/sbin/fw_setenv -s -
+               ;;
        xiaomi,miwifi-nano)
                fw_setenv flag_boot_success 1
                ;;