diff options
Diffstat (limited to '.local/bin/livevm')
| -rwxr-xr-x | .local/bin/livevm | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/.local/bin/livevm b/.local/bin/livevm index 79f7ed6..e83f5c6 100755 --- a/.local/bin/livevm +++ b/.local/bin/livevm @@ -12,6 +12,12 @@ cmd="qemu-system-x86_64 -boot menu=on -enable-kvm -device intel-hda -device hda-  [ ! -f "$storage" ] &&  	qemu-img create -f qcow2 "$storage" 30G +if [ "$#" -eq 1 ] && [ -f "$1" ] +then +	cmd="${cmd} -cdrom ${1}" +	shift +fi +  while getopts "wehc:d:" f  do  	case "$f" in | 
