cosmetic fixes

This commit is contained in:
betcher 2022-10-27 17:34:13 +03:00
parent 8ae599ea57
commit 6eb9586047

8
qemoo
View file

@ -14,16 +14,16 @@ do
case "$1" in
"-i" | "--install" ) ACTION='install' ;; # install from ISO to a qcow2 instead sipmle run
"-r" | "--run" ) ACTION='run' ;; # run (default)
"-s" | "--size" ) shift : SIZE=$1 ;; # size for new qcow2 (onli with --install)
"-q" | "--qcow2" ) shift; QCOW2="$1" ;; # name for new or existing qcow2 (onli with --install)
"-R" | "--ram" ) shift ; RAM=$1 ;; # size or RAM to guest machine
"-s" | "--size" ) shift : SIZE=$1 ;; # <par> size for new qcow2 (only with --install)
"-q" | "--qcow2" ) shift; QCOW2="$1" ;; # <par> name for new or existing qcow2 (only with --install)
"-R" | "--ram" ) shift ; RAM=$1 ;; # <par> size or RAM to guest machine
"-S" | "--show-cmdline" ) SHOW='yes' ;; # how qemu cmdline
"-a" | "--all" ) ALL='yes' ;; # use usb device as aggregate, with token, modem, etc
"-h" | "--help" ) # this help
echo "Usage: $0 /path/to/image <parameters>"
cat $0 |sed -n '/).*#.*/s/).*#/ - /p' |grep -v cat
exit;;
"--" ) shift ; QEMUADD="$@"
"--" ) shift ; QEMUADD="$@" # <par> additional parameters for qemu in the end of cmdline
break ;;
*) IMG=$1 ;;
esac