From d77e45bd8fc6b85c7ee1b1dcc9f12d366e523742 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Thu, 1 Oct 2020 18:10:11 +0200 Subject: Improved QEMU network interface mgmt. * Removed C&P QEMU ifup script * Removed deprecated brctl usage * Set TAP device ifname, required to run multiple QEMU VMs Signed-off-by: Toni Uhlig --- scripts/qemu-ifup | 44 -------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100755 scripts/qemu-ifup (limited to 'scripts') diff --git a/scripts/qemu-ifup b/scripts/qemu-ifup deleted file mode 100755 index e5e3858..0000000 --- a/scripts/qemu-ifup +++ /dev/null @@ -1,44 +0,0 @@ -#! /bin/sh -# Script to bring a network (tap) device for qemu up. -# The idea is to add the tap device to the same bridge -# as we have default routing to. - -set -x - -# in order to be able to find brctl -PATH=$PATH:/sbin:/usr/sbin -ip=$(which ip) - -if [ -n "$ip" ]; then - ip link set "$1" up -else - brctl=$(which brctl) - if [ ! "$ip" -o ! "$brctl" ]; then - echo "W: $0: not doing any bridge processing: neither ip nor brctl utility not found" >&2 - exit 0 - fi - ifconfig "$1" 0.0.0.0 up -fi - -switch=$(ip route ls | \ - awk '/^default / { - for(i=0;i&2 -- cgit v1.2.3