]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - config/udev/network-hotplug-bridges
udev: Set all wireless interfaces to master mode before adding to bridge
[people/pmueller/ipfire-2.x.git] / config / udev / network-hotplug-bridges
index 4fc11fb33530491a56351839b9913f912174cbdf..a2ee56b8365d356b4b4c4c2ee565979485c10a76 100644 (file)
@@ -101,7 +101,8 @@ case "${MODE}" in
                        #ip link set "${BRIDGE}" up
                fi
 
-               if grep -q "INTERFACE=${INTERFACE}" "/var/ipfire/wlanap/settings" 2>/dev/null; then
+               # Try setting wireless interfaces into master mode
+               if [ -d "/sys/class/net/${INTERFACE}/phy80211" ]; then
                        iw dev "${INTERFACE}" set type __ap
                fi