diff options
Diffstat (limited to 'target/linux/ramips/base-files/etc')
-rwxr-xr-x | target/linux/ramips/base-files/etc/init.d/bootcount | 13 |
1 files changed, 10 insertions, 3 deletions
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 } |