Upgrade dependencies
This commit is contained in:
parent
61788c5a27
commit
991d698ed3
1 changed files with 42 additions and 11 deletions
23
flash.sh
Executable file
23
flash.sh
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
ISO="build/livedisk.iso"
|
||||
DISK="/dev/disk/by-id/usb-Generic_USB_SD_Reader_12345678901234567890-0:0"
|
||||
|
||||
if [ ! -f "$ISO" ]
|
||||
then
|
||||
echo "Did not find ISO $ISO"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -b "$DISK" ]
|
||||
then
|
||||
echo "Did not find disk $DISK"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Flashing $ISO to $DISK"
|
||||
pv "$ISO" | sudo dd of="$DISK"
|
||||
sync
|
||||
sudo eject "$DISK"
|
||||
echo "Successfully flashed $DISK"
|
||||
Loading…
Reference in a new issue