openwrtv3/package/hostapd/files/hostapd.hotplug
2009-11-11 05:15:55 +00:00

12 lines
293 B
Text

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