ramips: add support for Rostelecom RT-SF-1
[openwrt/staging/wigyori.git] / target / linux / ramips / mt7621 / base-files / etc / init.d / bootcount
index 14e32f2968b123b7082fedbcba2416b8586e036e..597c2da60fb9a7c83f58e62f3562a0e01c263d40 100755 (executable)
@@ -8,7 +8,8 @@ boot() {
                [ -n "$(fw_printenv bootcount bootchanged 2>/dev/null)" ] &&\
                        echo -e "bootcount\nbootchanged\n" | /usr/sbin/fw_setenv -s -
                ;;
-       beeline,smartbox-turbo)
+       beeline,smartbox-turbo|\
+       rostelecom,rt-sf-1)
                [[ $(hexdump -n 1 -e '/1 "%1d"' -s $((0x20001)) /dev/mtd3) == \
                        $((0xff)) ]] || printf '\xff' | dd of=/dev/mtdblock3 \
                        count=1 bs=1 seek=$((0x20001))
@@ -22,6 +23,8 @@ boot() {
        linksys,ea8100-v2)
                mtd resetbc s_env || true
                ;;
+       belkin,rt1800|\
+       linksys,e7350|\
        samknows,whitebox-v8)
                fw_setenv bootcount 0
                ;;