projects
/
openwrt
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
b17161a50a588136c64be75bc4b0acb034ef8bd5
[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
,
ea7300-v1|\
12
linksys
,
ea7500-v2
)
13
mtd resetbc s_env || true
14
;;
15
samknows
,
whitebox-v8
)
16
fw_setenv bootcount
0
17
;;
18
esac
19
}