projects
/
openwrt
/
staging
/
noltari.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mediatek: mt7622: don't rely on existing image for sysupgrade
[openwrt/staging/noltari.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 1036793145df4abc86580d16abcad527bb0f5e9f..e62eba7ef17f6a452d0e9bb235bd90d40585fe68 100755
(executable)
--- a/
target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh
+++ b/
target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh
@@
-6,8
+6,8
@@
platform_do_upgrade() {
case "$board" in
bananapi,bpi-r64)
- export_bootdevice
- export_partdevice rootdev 0
+ local rootdev="$(cmdline_get_var root)"
+ rootdev="${rootdev##*/}"
case "$rootdev" in
mmc*)
CI_ROOTDEV="$rootdev"