build variants: only build opkg packages for the requested build variant (or any...
[openwrt/openwrt.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