add: start function
This commit is contained in:
parent
9048475efd
commit
75420d0f32
1 changed files with 7 additions and 5 deletions
12
shemum
12
shemum
|
@ -49,7 +49,12 @@ remove function {
|
|||
rm -r $ROOT_PATH/$OS_NAME
|
||||
}
|
||||
|
||||
|
||||
start function {
|
||||
qemu-system-x86_64 -boot c \
|
||||
-display none \
|
||||
-drive file=$IMG_PATH,format=raw \
|
||||
-m $RAM -smp $CPU
|
||||
}
|
||||
|
||||
# Options
|
||||
case $OPTION in
|
||||
|
@ -79,10 +84,7 @@ case $OPTION in
|
|||
-m $RAM -smp $CPU
|
||||
;;
|
||||
"start")
|
||||
qemu-system-x86_64 -boot c \
|
||||
-display none \
|
||||
-drive file=$IMG_PATH,format=raw \
|
||||
-m $RAM -smp $CPU
|
||||
start
|
||||
;;
|
||||
"remove")
|
||||
remove
|
||||
|
|
Loading…
Reference in a new issue