From 75420d0f32511ecb6265c78c51e2deddceabe00f Mon Sep 17 00:00:00 2001 From: BonzaiBrains <133261117+BonzaiBrains@users.noreply.github.com> Date: Thu, 31 Oct 2024 12:43:13 +0100 Subject: [PATCH] add: start function --- shemum | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/shemum b/shemum index 9c95ae1..1b48fc9 100755 --- a/shemum +++ b/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