projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mediatek: make sure MMC is not busy before commencing sysupgrade
[openwrt/openwrt.git]
/
target
/
linux
/
mediatek
/
mt7622
/
base-files
/
lib
/
upgrade
/
platform.sh
diff --git
a/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh
b/target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh
index 0cdd8df8f99ef7981c391d6898b99b1606711b87..513741d6672863a0458acc179dae16c6893c79f7 100755
(executable)
--- a/
target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh
+++ b/
target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh
@@
-12,6
+12,7
@@
platform_do_upgrade() {
export_partdevice rootdev 0
case "$rootdev" in
mmc*)
+ blockdev --rereadpt /dev/$rootdev || return 1
local fitpart=$(get_partition_by_name $rootdev "production")
[ "$fitpart" ] || return 1
dd if=/dev/zero of=/dev/$fitpart bs=4096 count=1 2>/dev/null