From 6661e6721b8602bd0741cde17caa32bcc688f43c Mon Sep 17 00:00:00 2001 From: Nicolas MORIN Date: Fri, 5 Jan 2024 12:33:25 +0100 Subject: [PATCH] =?UTF-8?q?restauration=20d'un=20nommage=20de=20variable?= =?UTF-8?q?=20afin=20d'apporter=20une=20plus=20grande=20souplesse=20aux=20?= =?UTF-8?q?=C3=A9volutions=20futures=20+=20ajout=20de=20l'option=20bios?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qemu-adm | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/qemu-adm b/qemu-adm index d3bc9b1..ac36b32 100755 --- a/qemu-adm +++ b/qemu-adm @@ -18,16 +18,25 @@ verifMVExiste() nouvMV() { local l_option=${1} - local l_parametre=${2} + echo "l_option=${l_option}" # Debogage + shift case "${l_option}" in "nom") - echo "-name ${l_parametre} \\" > ${chemin_mv} + echo "-name ${1} \\" > ${chemin_mv} ;; "cpu") - echo "-cpu ${l_parametre} \\" >> ${chemin_mv} + echo "-cpu ${1} -smp cores=${2},theads=${3},sockets=1 \\" >> ${chemin_mv} ;; "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 }