add: remove function
This commit is contained in:
parent
ad8a0782ae
commit
9048475efd
1 changed files with 10 additions and 1 deletions
11
shemum
11
shemum
|
@ -42,6 +42,15 @@ case $OS_NAME in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Functions
|
||||||
|
|
||||||
|
# Virtual machine removal
|
||||||
|
remove function {
|
||||||
|
rm -r $ROOT_PATH/$OS_NAME
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Options
|
# Options
|
||||||
case $OPTION in
|
case $OPTION in
|
||||||
# Initializes the VM and starts the installer image.
|
# Initializes the VM and starts the installer image.
|
||||||
|
@ -76,7 +85,7 @@ case $OPTION in
|
||||||
-m $RAM -smp $CPU
|
-m $RAM -smp $CPU
|
||||||
;;
|
;;
|
||||||
"remove")
|
"remove")
|
||||||
rm -r $ROOT_PATH/$OS_NAME
|
remove
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: shemum [init] <virtual machine name> <disk size>"
|
echo "Usage: shemum [init] <virtual machine name> <disk size>"
|
||||||
|
|
Loading…
Reference in a new issue