bug: give up when drive comes up ro

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/8/head
Robert Nelson 13 years ago
parent 7d60627776
commit 75bf195497

@ -990,6 +990,17 @@ function create_custom_netinstall_image {
extract_zimage
}
function drive_error_ro {
echo "-----------------------------"
echo "Error: for some reason your SD card is not writable..."
echo "Check: is the write protect lever set the locked position?"
echo "Check: do you have another SD card reader?"
echo "-----------------------------"
echo "Script gave up..."
exit
}
function unmount_all_drive_partitions {
echo ""
echo "Unmounting Partitions"
@ -1003,7 +1014,7 @@ function unmount_all_drive_partitions {
umount ${DRIVE} &> /dev/null || true
done
parted --script ${MMC} mklabel msdos
LC_ALL=C parted --script ${MMC} mklabel msdos | grep "Error:" && drive_error_ro
}
function uboot_in_boot_partition {

Loading…
Cancel
Save