projects
/
openwrt
/
staging
/
dedeckeh.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
mtd: base-files: Unify dual-firmware devices (Linksys)
[openwrt/staging/dedeckeh.git]
/
target
/
linux
/
ipq40xx
/
base-files
/
etc
/
init.d
/
bootcount
1
#!/bin/sh /etc/rc.common
2
3
START
=
99
4
5
start
() {
6
.
/
lib
/
functions.sh
7
8
case
$
(
board_name
)
in
9
alfa-network
,
ap120c-ac
)
10
[
-n
"$(fw_printenv bootcount changed 2>/dev/null)"
] &&
\
11
echo -e
"bootcount
\n
changed
\n
"
|
/
usr
/
sbin
/
fw_setenv
-s
-
12
;;
13
linksys
,
ea6350v3
)
14
mtd resetbc s_env || true
15
;;
16
esac
17
}