summaryrefslogtreecommitdiff
path: root/tct/rpi3_prepare_flash_conf.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tct/rpi3_prepare_flash_conf.sh')
-rwxr-xr-xtct/rpi3_prepare_flash_conf.sh12
1 files changed, 2 insertions, 10 deletions
diff --git a/tct/rpi3_prepare_flash_conf.sh b/tct/rpi3_prepare_flash_conf.sh
index 44520af..5895229 100755
--- a/tct/rpi3_prepare_flash_conf.sh
+++ b/tct/rpi3_prepare_flash_conf.sh
@@ -51,16 +51,8 @@ UUID_FILE="/var/tmp/uuid-${SDMUX}"
DEV_SDCARD=$(uuid2dev "${UUID_FILE}" "${SDMUX}") || die "sdcard not found!"
cd "${IMAGE_UNPACKED}"
-case "$IMAGE" in
- *2parts*)
- check_parts "$DEV_SDCARD" 1 2 3 6
- "${TESTLAB_SCRIPTS}/flash/flash_dd_rpi3-2parts.sh" "${DEV_SDCARD}"
- ;;
- *)
- check_parts "$DEV_SDCARD" 1 2 3 5 6
- "${TESTLAB_SCRIPTS}/flash/flash_dd_rpi3.sh" "${DEV_SDCARD}"
- ;;
-esac
+sudo "$RPI3_FLASH_SCRIPT" -d "${DEV_SDCARD}" -b "${BOOT_IMAGE}" &&\
+ sudo "$RPI3_FLASH_SCRIPT" -d "${DEV_SDCARD}" -b "${IMAGE}"
RET=$?
cd "${OLDPWD}"