|
|
@ -941,10 +941,16 @@ unmount_all_drive_partitions () {
|
|
|
|
umount ${DRIVE} >/dev/null 2>&1 || true
|
|
|
|
umount ${DRIVE} >/dev/null 2>&1 || true
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ ! "x${conf_smart_uboot}" = "xenable" ] ; then
|
|
|
|
|
|
|
|
count="100"
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
count="70"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
echo "Zeroing out Partition Table"
|
|
|
|
echo "Zeroing out Partition Table"
|
|
|
|
dd if=/dev/zero of=${media} bs=1M count=108 || drive_error_ro
|
|
|
|
dd if=/dev/zero of=${media} bs=1M count=${count} || drive_error_ro
|
|
|
|
sync
|
|
|
|
sync
|
|
|
|
dd if=${media} of=/dev/null bs=1M count=108
|
|
|
|
dd if=${media} of=/dev/null bs=1M count=${count}
|
|
|
|
sync
|
|
|
|
sync
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -1301,7 +1307,11 @@ process_dtb_conf () {
|
|
|
|
|
|
|
|
|
|
|
|
#defaults, if not set...
|
|
|
|
#defaults, if not set...
|
|
|
|
conf_boot_startmb=${conf_boot_startmb:-"1"}
|
|
|
|
conf_boot_startmb=${conf_boot_startmb:-"1"}
|
|
|
|
|
|
|
|
if [ ! "x${conf_smart_uboot}" = "xenable" ] ; then
|
|
|
|
conf_boot_endmb=${conf_boot_endmb:-"96"}
|
|
|
|
conf_boot_endmb=${conf_boot_endmb:-"96"}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
conf_boot_endmb=${conf_boot_endmb:-"64"}
|
|
|
|
|
|
|
|
fi
|
|
|
|
conf_root_device=${conf_root_device:-"/dev/mmcblk0"}
|
|
|
|
conf_root_device=${conf_root_device:-"/dev/mmcblk0"}
|
|
|
|
|
|
|
|
|
|
|
|
#error checking...
|
|
|
|
#error checking...
|
|
|
|