aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi/files/etc/hotplug.d/net/10-madwifi
blob: f5afce3f21f7e1bd8c0798220b6d87963661d881 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
if [ "$ACTION" = "add" -o "$ACTION" = "register" ]; then
	case "$INTERFACE" in
		ath*.sta*)
			local BASEIF="${INTERFACE%%\.*}"

			include /lib/network
			scan_interfaces
			local CONFIG="$(find_config "$BASEIF")" 
			[ -n "$CONFIG" ] && setup_interface "$INTERFACE" "$CONFIG"
		;;
	esac
fi