mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
udev: Set all wireless interfaces to master mode before adding to bridge
This patch changes that instead of only the wireless interface that is used to run a wireless access point, all wireless interfaces will be set to master mode. This allows that attaching the interface won't fail if hostapd isn't started, yet. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
087a20011b
commit
fa4905addf
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user