uboot-envtools: mt7622: make use of find_mmc_part
authorDaniel Golle <daniel@makrotopia.org>
Mon, 1 Nov 2021 14:00:57 +0000 (14:00 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 1 Nov 2021 18:00:47 +0000 (18:00 +0000)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
package/boot/uboot-envtools/files/mediatek_mt7622

index 495a837274fe69be778ebdd928f6f1f6a6e863ac..65ced284c350873b9956d3854752b78bb4a58554 100644 (file)
@@ -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"
                ;;