diff --git a/vm-start.sh b/vm-start.sh index 3e9d30e..8bb4835 100755 --- a/vm-start.sh +++ b/vm-start.sh @@ -215,13 +215,11 @@ set_uefi() { set_net() { case "${1%:*}" in "nat") - echo "add the interface ${1#*:}" network="${network} \ -netdev user,id=${1#*:} \ -device virtio-net,netdev=${1#*:}" ;; "br") - echo "add bridge ${1#*:}" if [ "${mac}" == "" ] then echo "error, no mac set" @@ -295,6 +293,11 @@ fi . "conf/$1-vm_var.sh" +for i in ${net}; do + set_net "${i}" +done + + for (( i=3; i<=$#; i++)); do case "${!i%=*}" in "--nproc")