mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
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
This commit is contained in:
@@ -109,6 +109,8 @@ define Build/Compile
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/InstallTemplate
|
define Package/InstallTemplate
|
||||||
|
$(INSTALL_DIR) $(1)/etc/hotplug.d/net
|
||||||
|
$(INSTALL_DATA) ./files/hostapd.hotplug $(1)/etc/hotplug.d/net/
|
||||||
$(INSTALL_DIR) $(1)/lib/wifi
|
$(INSTALL_DIR) $(1)/lib/wifi
|
||||||
$(INSTALL_DATA) ./files/hostapd.sh $(1)/lib/wifi/hostapd.sh
|
$(INSTALL_DATA) ./files/hostapd.sh $(1)/lib/wifi/hostapd.sh
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
|
|||||||
12
package/hostapd/files/hostapd.hotplug
Normal file
12
package/hostapd/files/hostapd.hotplug
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user