summaryrefslogtreecommitdiffstats
path: root/package/hostapd/files/hostapd.hotplug
blob: 296422428436bacc5cc39ad33b8f8dbf40cab7c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
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