mirror of
https://abf.rosa.ru/djam/qemoo.git
synced 2025-02-23 17:12:57 +00:00
cosmetic fixes
This commit is contained in:
parent
8ae599ea57
commit
6eb9586047
1 changed files with 4 additions and 4 deletions
8
qemoo
8
qemoo
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue