hostapd: automatically add wds sta interfaces of an ap to the right bridge
[openwrt-10.03/.git] / package / hostapd / files / hostapd.hotplug
1 if [ "$ACTION" = "add" -o "$ACTION" = "register" ]; then
2         case "$INTERFACE" in
3                 wlan*.sta*)
4                         local BASEIF="${INTERFACE%%\.*}"
5
6                         include /lib/network
7                         scan_interfaces
8                         local CONFIG="$(find_config "$BASEIF")" 
9                         [ -n "$CONFIG" ] && setup_interface "$INTERFACE" "$CONFIG"
10                 ;;
11         esac
12 fi