diff options
author | Daniel Golle <daniel@makrotopia.org> | 2021-11-01 14:00:57 +0000 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2021-11-01 18:00:47 +0000 |
commit | cb5953635ed66e66c25624201c3b3289212be73f (patch) | |
tree | 88b8ddc3187b516042f909d832417cd0797b740f /package/boot/uboot-envtools | |
parent | 9f223a20bd5f0cbec9f34427588b645ae38433ff (diff) | |
download | upstream-cb5953635ed66e66c25624201c3b3289212be73f.tar.gz upstream-cb5953635ed66e66c25624201c3b3289212be73f.tar.bz2 upstream-cb5953635ed66e66c25624201c3b3289212be73f.zip |
uboot-envtools: mt7622: make use of find_mmc_part
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'package/boot/uboot-envtools')
-rw-r--r-- | package/boot/uboot-envtools/files/mediatek_mt7622 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/boot/uboot-envtools/files/mediatek_mt7622 b/package/boot/uboot-envtools/files/mediatek_mt7622 index 495a837274..65ced284c3 100644 --- a/package/boot/uboot-envtools/files/mediatek_mt7622 +++ b/package/boot/uboot-envtools/files/mediatek_mt7622 @@ -22,7 +22,7 @@ bananapi,bpi-r64) export_partdevice rootdev 0 case "$rootdev" in mmc*) - local envdev=/dev/$(get_partition_by_name $rootdev ubootenv) + local envdev=$(find_mmc_part "ubootenv" $rootdev) ubootenv_add_uci_config "$envdev" "0x0" "0x80000" "0x80000" "1" ubootenv_add_uci_config "$envdev" "0x80000" "0x80000" "0x80000" "1" ;; |