Functions #1
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
|
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
|
# Options
|
||||||
case $OPTION in
|
case $OPTION in
|
||||||
|
@ -79,10 +84,7 @@ case $OPTION in
|
||||||
-m $RAM -smp $CPU
|
-m $RAM -smp $CPU
|
||||||
;;
|
;;
|
||||||
"start")
|
"start")
|
||||||
qemu-system-x86_64 -boot c \
|
start
|
||||||
-display none \
|
|
||||||
-drive file=$IMG_PATH,format=raw \
|
|
||||||
-m $RAM -smp $CPU
|
|
||||||
;;
|
;;
|
||||||
"remove")
|
"remove")
|
||||||
remove
|
remove
|
||||||
|
|
Loading…
Reference in a new issue