feat: Flash compressed image to sd card

This commit is contained in:
Laborratte 5 2026-03-25 14:21:21 +01:00
commit 949e0e000d
Signed by: Laborratte5
GPG key ID: 3A30072E35202C02

13
provision-pi.sh Executable file
View file

@ -0,0 +1,13 @@
#!/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"