restauration d'un nommage de variable afin d'apporter une plus grande souplesse aux évolutions futures + ajout de l'option bios

pull/1/head
Nicolas MORIN 12 months ago
parent 79e05a4003
commit 6661e6721b

@ -18,16 +18,25 @@ verifMVExiste()
nouvMV() nouvMV()
{ {
local l_option=${1} local l_option=${1}
local l_parametre=${2} echo "l_option=${l_option}" # Debogage
shift
case "${l_option}" in case "${l_option}" in
"nom") "nom")
echo "-name ${l_parametre} \\" > ${chemin_mv} echo "-name ${1} \\" > ${chemin_mv}
;; ;;
"cpu") "cpu")
echo "-cpu ${l_parametre} \\" >> ${chemin_mv} echo "-cpu ${1} -smp cores=${2},theads=${3},sockets=1 \\" >> ${chemin_mv}
;; ;;
"memoire") "memoire")
echo "-memoire ${l_parametre} \\" >> ${chemin_mv} echo "-m ${1} \\" >> ${chemin_mv}
;;
"bios")
case "${1}" in
"OVMF")
cp /usr/share/ovmf/OVMF.fd ${base_chemin_mv}/OVMF.fd
echo "-drive if=pflash,format=raw,file=${base_chemin_mv}/OVMF.fd \\" >> ${chemin_mv}
;;
esac
;; ;;
esac esac
} }

Loading…
Cancel
Save