X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=target%2Flinux%2Framips%2Fbase-files%2Fetc%2Finit.d%2Fbootcount;h=12326de0e3ad3a49a81ecba44c78fd1297d2d411;hp=0f260fa3fc67f9bb44d8273a25b1d4549f41ee79;hb=7a62e909b286250e310a649a4cbe11d65f802f78;hpb=f12a32630ff52b5e13397f64e9fb31708e97fb60 diff --git a/target/linux/ramips/base-files/etc/init.d/bootcount b/target/linux/ramips/base-files/etc/init.d/bootcount index 0f260fa3fc..12326de0e3 100755 --- a/target/linux/ramips/base-files/etc/init.d/bootcount +++ b/target/linux/ramips/base-files/etc/init.d/bootcount @@ -5,8 +5,15 @@ START=99 start() { . /lib/functions.sh - local board=$(board_name) - if [ $board = "sk-wb8" ]; then + case $(board_name) in + alfa-network,ac1200rm|\ + alfa-network,awusfree1|\ + alfa-network,tube-e4g) + [ -n "$(fw_printenv bootcount bootchanged 2>/dev/null)" ] &&\ + echo -e "bootcount\nbootchanged\n" | /usr/sbin/fw_setenv -s - + ;; + sk-wb8) fw_setenv bootcount 0 - fi + ;; + esac }