Added warnings in write_to_media.sh
This commit is contained in:
parent
15876c6147
commit
dba5faf569
@ -14,10 +14,11 @@ if ! [ -e $ISO_NAME ]; then
|
||||
exit 1
|
||||
|
||||
elif [ "$#" -ne 1 ]; then
|
||||
echo "Invocation: $0 [DEVICE_NAME] "
|
||||
echo "Example: $0 /dev/sda "
|
||||
echo "Usage: $0 [DEVICE_NAME] (eg. $0 /dev/sda)"
|
||||
exit 1
|
||||
else
|
||||
echo "CAUTION: All data on device $1 will be erased"
|
||||
echo "You have been warned"
|
||||
sudo dd if=$ISO_NAME of=$1 bs=4M && sync
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user