From 5501cf6ed82befd07a7249f51e8a71fd46654ddf Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 11 Nov 2009 05:15:55 +0000 Subject: hostapd: automatically add wds sta interfaces of an ap to the right bridge SVN-Revision: 18365 --- package/hostapd/files/hostapd.hotplug | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 package/hostapd/files/hostapd.hotplug (limited to 'package/hostapd/files/hostapd.hotplug') diff --git a/package/hostapd/files/hostapd.hotplug b/package/hostapd/files/hostapd.hotplug new file mode 100644 index 0000000000..2964224284 --- /dev/null +++ b/package/hostapd/files/hostapd.hotplug @@ -0,0 +1,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 -- cgit v1.2.3