diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-11-11 05:15:55 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-11-11 05:15:55 +0000 |
commit | 5501cf6ed82befd07a7249f51e8a71fd46654ddf (patch) | |
tree | ea52b798f1b44fd825a4a39c5256e39eab52de08 /package/hostapd/files | |
parent | 36eccaad210a4b1df56c7f5d8f5548170af19d1e (diff) | |
download | mtk-20170518-5501cf6ed82befd07a7249f51e8a71fd46654ddf.zip mtk-20170518-5501cf6ed82befd07a7249f51e8a71fd46654ddf.tar.gz mtk-20170518-5501cf6ed82befd07a7249f51e8a71fd46654ddf.tar.bz2 |
hostapd: automatically add wds sta interfaces of an ap to the right bridge
SVN-Revision: 18365
Diffstat (limited to 'package/hostapd/files')
-rw-r--r-- | package/hostapd/files/hostapd.hotplug | 12 |
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 0000000..2964224 --- /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 |