banan-os/install-usb.sh

9 lines
163 B
Bash
Executable File

#!/bin/sh
set -e
. ./disk.sh
SIZE=$(stat banan-os.img | grep -oP '\d+' | head -n 1)
echo Writing $SIZE bytes
sudo dd if=banan-os.img of=/dev/sda status=progress