38 lines
1.1 KiB
Bash
38 lines
1.1 KiB
Bash
# ------------------------------------------------------------------------------
|
|
# Create VBox VM
|
|
# This file is part of the init.sh project
|
|
# Copyright (c) 2019-2021 Geoffray Levasseur <fatalerrors@geoffray-levasseur.org>
|
|
# ------------------------------------------------------------------------------
|
|
# This file is distributed under 3-clause BSD license.
|
|
# The complete license agreement can be obtained at:
|
|
# https://opensource.org/licenses/BSD-3-Clause
|
|
# ------------------------------------------------------------------------------
|
|
# Variable:
|
|
# To be defined
|
|
# ------------------------------------------------------------------------------
|
|
|
|
export VER_create_vm="0.0.1"
|
|
|
|
create_vm()
|
|
{
|
|
if [[ WITH_VM != "yes" ]]; then
|
|
prnt I "Cette machine n'est pas configurée pour la virtualisation, rien à faire."
|
|
return 0
|
|
fi
|
|
|
|
pkginst virtualbox
|
|
# to be continued
|
|
}
|
|
|
|
precheck_create_vm()
|
|
{
|
|
if [[ $WITH_VM == "true" ]]; then
|
|
: #todo
|
|
else
|
|
prnt I "Aucune machine virtuelle à installer."
|
|
fi
|
|
}
|
|
|
|
export -f create_vm
|
|
export -f precheck_create_vm
|