projects
/
openwrt
/
staging
/
rmilecki.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ramips: support dual image feature on ALFA Network boards
[openwrt/staging/rmilecki.git]
/
target
/
linux
/
ramips
/
mt76x8
/
base-files
/
etc
/
init.d
/
bootcount
diff --git
a/target/linux/ramips/mt76x8/base-files/etc/init.d/bootcount
b/target/linux/ramips/mt76x8/base-files/etc/init.d/bootcount
index 0d64deb9e0eb0d6d86c41edf7a7eca2095b8ed46..3c21433cc55a9b32dcc0160d6f755144fadc4af1 100755
(executable)
--- a/
target/linux/ramips/mt76x8/base-files/etc/init.d/bootcount
+++ b/
target/linux/ramips/mt76x8/base-files/etc/init.d/bootcount
@@
-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
;;