From: Daniel Weismüller Date: Wed, 7 Apr 2021 14:39:34 +0000 (+0200) Subject: Drop support for macvtap X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fheads%2Fbridge-wifi;p=people%2Fms%2Fipfire-2.x.git 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 --- 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 7dfa5a044e..ea8d7ca6b1 100644 --- a/config/rootfiles/core/156/filelists/files +++ b/config/rootfiles/core/156/filelists/files @@ -1,5 +1,8 @@ +etc/collectd.conf etc/rc.d/init.d/suricata etc/sysctl.conf +lib/udev/network-hotplug-bridges +lib/udev/network-hotplug-rename srv/web/ipfire/cgi-bin/entropy.cgi srv/web/ipfire/cgi-bin/firewall.cgi srv/web/ipfire/cgi-bin/getrrdimage.cgi diff --git a/config/rootfiles/core/156/update.sh b/config/rootfiles/core/156/update.sh index d078c01cd1..fd83d94bac 100644 --- a/config/rootfiles/core/156/update.sh +++ b/config/rootfiles/core/156/update.sh @@ -58,6 +58,10 @@ rm -rfv /usr/lib/perl5/5.30.0 # 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