mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-23 01:12:57 +02:00
udev: Do not use MACVTAP for any wireless devices
Fixes #11179 Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
8fa523e028
commit
1857244ea4
@@ -67,11 +67,21 @@ for zone in ${ZONES}; do
|
||||
|
||||
# If a matching interface has been found we will
|
||||
# print the name to which udev will rename it.
|
||||
if [ "${!mode}" = "macvtap" ]; then
|
||||
echo "${!device}phys"
|
||||
else
|
||||
echo "${!device}"
|
||||
fi
|
||||
case "${!mode}" in
|
||||
macvtap)
|
||||
# MACVTAP mode doesn't work for WiFi devices
|
||||
if [ -d "/sys/class/net/${INTERFACE}/phy80211" ]; then
|
||||
logger -t network "MACVTAP mode is not supported for wireless devices"
|
||||
echo "${!device}"
|
||||
else
|
||||
echo "${!device}phys"
|
||||
fi
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "${!device}"
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user