projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ipq806x: add support for ASRock G10
[openwrt/openwrt.git]
/
target
/
linux
/
ipq806x
/
base-files
/
etc
/
init.d
/
bootcount
diff --git
a/target/linux/ipq806x/base-files/etc/init.d/bootcount
b/target/linux/ipq806x/base-files/etc/init.d/bootcount
index 77965e647bb94cb6b1972c47d393ed2e17109435..7a54c34dbaca433320e594e86fbb605914750d55 100755
(executable)
--- a/
target/linux/ipq806x/base-files/etc/init.d/bootcount
+++ b/
target/linux/ipq806x/base-files/etc/init.d/bootcount
@@
-2,8
+2,16
@@
START=99
+. /lib/upgrade/asrock.sh
+
boot() {
case $(board_name) in
+ asrock,g10)
+ asrock_bootconfig_mangle "bootcheck"
+ if [ $? -eq 0 ]; then
+ reboot
+ fi
+ ;;
edgecore,ecw5410)
fw_setenv bootcount 0
;;