hostapd: automatically add wds sta interfaces of an ap to the right bridge

SVN-Revision: 18365
This commit is contained in:
Felix Fietkau
2009-11-11 05:15:55 +00:00
parent 36eccaad21
commit 5501cf6ed8
2 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
if [ "$ACTION" = "add" -o "$ACTION" = "register" ]; then
case "$INTERFACE" in
wlan*.sta*)
local BASEIF="${INTERFACE%%\.*}"
include /lib/network
scan_interfaces
local CONFIG="$(find_config "$BASEIF")"
[ -n "$CONFIG" ] && setup_interface "$INTERFACE" "$CONFIG"
;;
esac
fi