projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mediatek: Add support for D-Link EAGLE PRO AI R32
[openwrt/openwrt.git]
/
target
/
linux
/
mediatek
/
mt7622
/
base-files
/
etc
/
init.d
/
bootcount
diff --git
a/target/linux/mediatek/mt7622/base-files/etc/init.d/bootcount
b/target/linux/mediatek/mt7622/base-files/etc/init.d/bootcount
index bc4eeb6530d4901603c31bff5cb135aa00a1fe9d..19a321b48b095f7d3934f3b4ac8d277f73abf035 100755
(executable)
--- a/
target/linux/mediatek/mt7622/base-files/etc/init.d/bootcount
+++ b/
target/linux/mediatek/mt7622/base-files/etc/init.d/bootcount
@@
-4,6
+4,14
@@
START=99
boot() {
case $(board_name) in
+ dlink,eagle-pro-ai-m32-a1|\
+ dlink,eagle-pro-ai-r32-a1)
+ if grep -q boot_part=Kernel1 /proc/cmdline; then
+ fw_setenv boot_part 1
+ else
+ fw_setenv boot_part 2
+ fi
+ ;;
linksys,e8450)
mtd erase senv || true
;;