projects
/
openwrt
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
ramips: add support for Linksys EA7500 v2
[openwrt/openwrt.git]
/
target
/
linux
/
ramips
/
mt7621
/
base-files
/
etc
/
init.d
/
bootcount
1
#!/bin/sh /etc/rc.common
2
3
START
=
99
4
5
boot
() {
6
case
$
(
board_name
)
in
7
alfa-network
,
quad-e4g
)
8
[
-n
"$(fw_printenv bootcount bootchanged 2>/dev/null)"
] &&
\
9
echo -e
"bootcount
\n
bootchanged
\n
"
|
/
usr
/
sbin
/
fw_setenv
-s
-
10
;;
11
linksys
,
ea7500-v2
)
12
mtd resetbc s_env || true
13
;;
14
samknows
,
whitebox-v8
)
15
fw_setenv bootcount
0
16
;;
17
esac
18
}