raspi-flash/provision-pi.sh

13 lines
287 B
Bash
Executable file

#!/usr/bin/env bash
flash_sd () {
img_file=$1
sd_card=$2
echo "Flashing $img_file to $sd_card ..."
xzcat --stdout $img_file | dd of=$sd_card status=progress
}
read -e -p "Compressed Image file: " IMG_FILE
read -e -p "SD Card: " SD_CARD
flash_sd "$IMG_FILE" "$SD_CARD"