cleanup/merge: ${media}${PARTITION_PREFIX} -> ${media_prefix}

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

@ -1167,7 +1167,7 @@ format_boot_partition () {
echo "Formating Boot Partition" echo "Formating Boot Partition"
echo "-----------------------------" echo "-----------------------------"
partprobe ${media} partprobe ${media}
LC_ALL=C ${mkfs} ${media}${PARTITION_PREFIX}1 ${mkfs_label} || format_partition_error LC_ALL=C ${mkfs} ${media_prefix}1 ${mkfs_label} || format_partition_error
} }
create_partitions () { create_partitions () {
@ -1214,7 +1214,7 @@ populate_boot () {
mkdir -p ${TEMPDIR}/disk mkdir -p ${TEMPDIR}/disk
fi fi
if mount -t ${mount_partition_format} ${media}${PARTITION_PREFIX}1 ${TEMPDIR}/disk; then if mount -t ${mount_partition_format} ${media_prefix}1 ${TEMPDIR}/disk; then
mkdir -p ${TEMPDIR}/disk/backup mkdir -p ${TEMPDIR}/disk/backup
mkdir -p ${TEMPDIR}/disk/dtbs mkdir -p ${TEMPDIR}/disk/dtbs
@ -1353,7 +1353,7 @@ populate_boot () {
echo "-----------------------------" echo "-----------------------------"
else else
echo "-----------------------------" echo "-----------------------------"
echo "Unable to mount ${media}${PARTITION_PREFIX}1 at ${TEMPDIR}/disk to complete populating Boot Partition" echo "Unable to mount ${media_prefix}1 at ${TEMPDIR}/disk to complete populating Boot Partition"
echo "Please retry running the script, sometimes rebooting your system helps." echo "Please retry running the script, sometimes rebooting your system helps."
echo "-----------------------------" echo "-----------------------------"
exit exit
@ -1705,8 +1705,8 @@ while [ ! -z "$1" ] ; do
--mmc) --mmc)
checkparm $2 checkparm $2
media="$2" media="$2"
unset PARTITION_PREFIX media_prefix="${media}"
echo ${media} | grep mmcblk >/dev/null && PARTITION_PREFIX="p" echo ${media} | grep mmcblk >/dev/null && media_prefix="${media}p"
check_root check_root
check_mmc check_mmc
;; ;;

Loading…
Cancel
Save