summaryrefslogtreecommitdiff
path: root/package/hostapd/files
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-11-11 05:15:55 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-11-11 05:15:55 +0000
commit872cbfb521e1b97826cc65eb669b16a8c3a871af (patch)
tree60efb6c5f1f10362cc65b72fff1cefacde3b957f /package/hostapd/files
parent4fa998189d49b137ca25b8d1aca136bed021e6bd (diff)
hostapd: automatically add wds sta interfaces of an ap to the right bridge
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18365 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/hostapd/files')
-rw-r--r--package/hostapd/files/hostapd.hotplug12
1 files changed, 12 insertions, 0 deletions
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