build: create pkginfo dir earlier to avoid build breakage
[openwrt/openwrt.git] / package / madwifi / files / etc / hotplug.d / net / 10-madwifi
1 if [ "$ACTION" = "add" -o "$ACTION" = "register" ]; then
2 case "$INTERFACE" in
3 ath*.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