alarm/uboot-wandboard: sync after dd

This commit is contained in:
Kevin Mihelich 2013-08-13 17:26:53 +00:00
parent 88a46b9459
commit 5b6b97e191

View file

@ -4,6 +4,7 @@ flash_uboot() {
read -r shouldwe
if [[ $shouldwe =~ ^([yY][eE][sS]|[yY])$ ]]; then
dd if=/boot/u-boot.imx of=/dev/mmcblk0 bs=512 seek=2
sync
else
echo "You can do this later by running:"
echo "# dd if=/boot/u-boot.imx of=/dev/mmcblk0 bs=512 seek=2"