projects
/
openwrt
/
staging
/
jow.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
mediatek: Add support for D-Link EAGLE PRO AI R32
[openwrt/staging/jow.git]
/
target
/
linux
/
mediatek
/
mt7622
/
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
dlink
,
eagle-pro-ai-m32-a1|\
8
dlink
,
eagle-pro-ai-r32-a1
)
9
if
grep
-q
boot_part
=
Kernel1
/
proc
/
cmdline
;
then
10
fw_setenv boot_part
1
11
else
12
fw_setenv boot_part
2
13
fi
14
;;
15
linksys
,
e8450
)
16
mtd erase senv || true
17
;;
18
esac
19
}