projects
/
openwrt
/
staging
/
mkresin.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
ath79: adtran,bsap1840/bsap1800-v2: move bootcount out of 02_network
[openwrt/staging/mkresin.git]
/
target
/
linux
/
ath79
/
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
adtran
,
bsap1800-v2|\
8
adtran
,
bsap1840
)
9
fconfig
-s -w -d
$
(
find_mtd_part
"RedBoot config"
)
-n
boot_cntb
-x
0
10
;;
11
qihoo
,
c301
)
12
local
n
=
$
(
fw_printenv activeregion | cut
-d
=
-f
2
)
13
fw_setenv
"image
${n}
trynum"
0
14
;;
15
esac
16
}