projects
/
openwrt
/
staging
/
nbd.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
ath79: Add support for MOXA AWK-1137C
[openwrt/staging/nbd.git]
/
target
/
linux
/
ath79
/
generic
/
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
moxa
,
awk-1137c
)
12
fw_setenv fwr_verify
0
13
;;
14
qihoo
,
c301
)
15
local
n
=
$
(
fw_printenv activeregion | cut
-d
=
-f
2
)
16
fw_setenv
"image
${n}
trynum"
0
17
;;
18
esac
19
}