projects
/
openwrt
/
staging
/
wigyori.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
treewide: sync bootcount scripts across targets
[openwrt/staging/wigyori.git]
/
target
/
linux
/
ipq40xx
/
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
,
ap120c-ac
)
8
[
-n
"$(fw_printenv bootcount changed 2>/dev/null)"
] &&
\
9
echo -e
"bootcount
\n
changed
\n
"
|
/
usr
/
sbin
/
fw_setenv
-s
-
10
;;
11
linksys
,
ea6350v3|\
12
linksys
,
ea8300
)
13
mtd resetbc s_env || true
14
;;
15
esac
16
}