diff --git a/reform2-imx8mq/deploy-sdcard.sh b/reform2-imx8mq/deploy-sdcard.sh new file mode 100755 index 0000000000000000000000000000000000000000..6a557f97c3f1b5c356857e98f214a2ab1cee77c3 --- /dev/null +++ b/reform2-imx8mq/deploy-sdcard.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +disk=$1 + +if [[ "x$disk" == "x" ]] +then + echo "Specify disk (i.e. sdc)!" + exit 1 +fi + +dd if=reform-system.img of=/dev/$disk bs=8M status=progress +growpart -u auto /dev/$disk 1 +resize2fs /dev/${disk}1 +