mirror of https://github.com/hak5/openwrt-owl.git
hostapd: automatically add wds sta interfaces of an ap to the right bridge
SVN-Revision: 18365owl
parent
36eccaad21
commit
5501cf6ed8
|
@ -109,6 +109,8 @@ define Build/Compile
|
|||
endef
|
||||
|
||||
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_DATA) ./files/hostapd.sh $(1)/lib/wifi/hostapd.sh
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue