dash: just use end size so we can drop let

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/22/head
Robert Nelson 12 years ago
parent 8ba7981de7
commit d071d7a3f1

@ -1200,24 +1200,20 @@ create_partitions () {
mkfs_label="-L ${BOOT_LABEL}" mkfs_label="-L ${BOOT_LABEL}"
fi fi
if [ "${boot_startmb}" ] ; then
let boot_endmb=${boot_startmb}+${boot_partition_size}
fi
case "${bootloader_location}" in case "${bootloader_location}" in
fatfs_boot) fatfs_boot)
fatfs_boot fatfs_boot
;; ;;
dd_uboot_boot) dd_uboot_boot)
dd_uboot_boot dd_uboot_boot
LC_ALL=C parted --script ${MMC} mkpart primary ${parted_format} ${boot_startmb} ${boot_endmb} LC_ALL=C parted --script ${MMC} mkpart primary ${parted_format} ${boot_startmb} ${boot_partition_size}
;; ;;
dd_spl_uboot_boot) dd_spl_uboot_boot)
dd_spl_uboot_boot dd_spl_uboot_boot
LC_ALL=C parted --script ${MMC} mkpart primary ${parted_format} ${boot_startmb} ${boot_endmb} LC_ALL=C parted --script ${MMC} mkpart primary ${parted_format} ${boot_startmb} ${boot_partition_size}
;; ;;
*) *)
LC_ALL=C parted --script ${MMC} mkpart primary ${parted_format} ${boot_startmb} ${boot_endmb} LC_ALL=C parted --script ${MMC} mkpart primary ${parted_format} ${boot_startmb} ${boot_partition_size}
;; ;;
esac esac
format_boot_partition format_boot_partition

Loading…
Cancel
Save