projects
/
openwrt
/
openwrt.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/openwrt.git]
/
target
/
linux
/
ramips
/
base-files
/
etc
/
init.d
/
bootcount
diff --git
a/target/linux/ramips/base-files/etc/init.d/bootcount
b/target/linux/ramips/base-files/etc/init.d/bootcount
index 0f260fa3fc67f9bb44d8273a25b1d4549f41ee79..12326de0e3ad3a49a81ecba44c78fd1297d2d411 100755
(executable)
--- 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
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
fw_setenv bootcount 0
- fi
+ ;;
+ esac
}
}