From 73476dd9dc9cd6adc041dfbafce14d7b6c1d1f1b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Weism=C3=BCller?= Date: Wed, 7 Apr 2021 14:56:16 +0000 Subject: [PATCH] Drop support for macvtap This has been broken because of other changes on the network scripts and since we now have support for bridges there is no point in supporting something else that has the same functionality. Signed-off-by: Michael Tremer --- config/collectd/collectd.conf | 1 - config/rootfiles/core/156/filelists/files | 1 + config/rootfiles/core/156/update.sh | 4 ++++ config/udev/network-hotplug-bridges | 9 --------- config/udev/network-hotplug-rename | 10 ---------- html/cgi-bin/zoneconf.cgi | 5 ----- 6 files changed, 5 insertions(+), 25 deletions(-) diff --git a/config/collectd/collectd.conf b/config/collectd/collectd.conf index c2316e415c..941c631c93 100644 --- a/config/collectd/collectd.conf +++ b/config/collectd/collectd.conf @@ -36,7 +36,6 @@ include "/etc/collectd.precache" Interface "lo" Interface "/[0-9]*phys$/" - Interface "/^macvtap[0-9]*$/" Interface "/^vnet[0-9]*$/" IgnoreSelected true diff --git a/config/rootfiles/core/156/filelists/files b/config/rootfiles/core/156/filelists/files index 8a73b73cbb..680b1f32b2 100644 --- a/config/rootfiles/core/156/filelists/files +++ b/config/rootfiles/core/156/filelists/files @@ -1,3 +1,4 @@ +etc/collectd.conf etc/rc.d/init.d/suricata etc/sysctl.conf lib/udev/network-hotplug-bridges diff --git a/config/rootfiles/core/156/update.sh b/config/rootfiles/core/156/update.sh index 3f3634335f..972fc1d704 100644 --- a/config/rootfiles/core/156/update.sh +++ b/config/rootfiles/core/156/update.sh @@ -62,6 +62,10 @@ rm -rfv \ # Reload sysctl.conf sysctl -p +# Migrate any macvtap interfaces to bridge +sed -e "s/_MODE=macvtap/_MODE=bridge/g" \ + -i /var/ipfire/ethernet/settings + # Start services telinit u /etc/init.d/suricata restart diff --git a/config/udev/network-hotplug-bridges b/config/udev/network-hotplug-bridges index a2ee56b836..bacf722ef9 100644 --- a/config/udev/network-hotplug-bridges +++ b/config/udev/network-hotplug-bridges @@ -112,15 +112,6 @@ case "${MODE}" in ip link set dev "${INTERFACE}" up ;; - macvtap) - ADDRESS="$( - END -- 2.39.5