All checks were successful
Build documentation / build-and-deploy (push) Successful in 3m50s
20 lines
285 B
Bash
Executable File
20 lines
285 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Requires sudo
|
|
# USAGE: ./aux/write_iso.sh /dev/sda
|
|
|
|
TARGET="$1"
|
|
|
|
if [ -z "$TARGET" ]; then
|
|
exit 1
|
|
fi
|
|
|
|
if [ ! -b "$TARGET" ]; then
|
|
echo "Not a block device"
|
|
exit 1
|
|
fi
|
|
|
|
set -x
|
|
|
|
dd if=./mop3.iso of="$TARGET" bs=4M status=progress oflag=direct conv=notrunc,sync && sync
|