|
|
@ -3,6 +3,7 @@
|
|
|
|
base_chemin_mv="/tmp/ramdisk/qemu-adm"
|
|
|
|
base_chemin_mv="/tmp/ramdisk/qemu-adm"
|
|
|
|
bin_qemu="/usr/bin/qemu-system-x86_64"
|
|
|
|
bin_qemu="/usr/bin/qemu-system-x86_64"
|
|
|
|
bin_qemu_img="/usr/bin/qemu-img"
|
|
|
|
bin_qemu_img="/usr/bin/qemu-img"
|
|
|
|
|
|
|
|
nom_script=$(basename $0)
|
|
|
|
|
|
|
|
|
|
|
|
die()
|
|
|
|
die()
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -68,6 +69,9 @@ nouvMV()
|
|
|
|
|
|
|
|
|
|
|
|
echo "-device ${2},netdev=${1} -netdev tap,id=${1},ifname=${1},script=no,downscript=no \\" >> ${chemin_mv}
|
|
|
|
echo "-device ${2},netdev=${1} -netdev tap,id=${1},ifname=${1},script=no,downscript=no \\" >> ${chemin_mv}
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
|
|
|
|
"parametres")
|
|
|
|
|
|
|
|
echo "$@ \\" >> ${chemin_mv}
|
|
|
|
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -338,13 +342,6 @@ creeMV()
|
|
|
|
commandes_a_executer+=( "nouvMV reseau ${reseau_nom_interface} ${reseau_type} ${reseau_activ_pont} ${reseau_nom_pont} ${reseau_activ_8021q} ${reseau_mode_8021q} ${reseau_vid}")
|
|
|
|
commandes_a_executer+=( "nouvMV reseau ${reseau_nom_interface} ${reseau_type} ${reseau_activ_pont} ${reseau_nom_pont} ${reseau_activ_8021q} ${reseau_mode_8021q} ${reseau_vid}")
|
|
|
|
echo "nouvMV reseau ${reseau_nom_interface} ${reseau_type} ${reseau_activ_pont} ${reseau_nom_pont} ${reseau_activ_8021q} ${reseau_mode_8021q} ${reseau_vid}" # Debogage
|
|
|
|
echo "nouvMV reseau ${reseau_nom_interface} ${reseau_type} ${reseau_activ_pont} ${reseau_nom_pont} ${reseau_activ_8021q} ${reseau_mode_8021q} ${reseau_vid}" # Debogage
|
|
|
|
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
'-p') # Parametres
|
|
|
|
|
|
|
|
echo "parametres" # Debogage
|
|
|
|
|
|
|
|
parametre="${2}"
|
|
|
|
|
|
|
|
presenceParametre "$#" "$1"
|
|
|
|
|
|
|
|
echo "parametres parametre=${parametre}" # Debogage
|
|
|
|
|
|
|
|
shift
|
|
|
|
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
"-s") # Sous-volume BTRFS
|
|
|
|
"-s") # Sous-volume BTRFS
|
|
|
|
echo "sous-volume" # Debogage
|
|
|
|
echo "sous-volume" # Debogage
|
|
|
@ -369,6 +366,15 @@ creeMV()
|
|
|
|
usage "cree"
|
|
|
|
usage "cree"
|
|
|
|
exit 0
|
|
|
|
exit 0
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
|
|
|
|
'--') # Autre parametres (champ libre)
|
|
|
|
|
|
|
|
echo "parametres" # Debogage
|
|
|
|
|
|
|
|
presenceParametre "$#" "$1"
|
|
|
|
|
|
|
|
shift
|
|
|
|
|
|
|
|
parametres="$@"
|
|
|
|
|
|
|
|
echo "parametres=${parametres}" # Debogage
|
|
|
|
|
|
|
|
commandes_a_executer+=( "nouvMV parametres $parametres")
|
|
|
|
|
|
|
|
shift $#
|
|
|
|
|
|
|
|
;;
|
|
|
|
*) # Autre
|
|
|
|
*) # Autre
|
|
|
|
usage "cree"
|
|
|
|
usage "cree"
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|