From dab5ebaa76d6432459ba6e26ab22600ed85dd3e4 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 4 Nov 2011 01:05:12 +0000 Subject: netifd: ensure that a bridge gets created before hostapd needs it, hostapd must not attempt to create the bridge by itself SVN-Revision: 28745 --- package/netifd/files/lib/network/config.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'package/netifd/files') diff --git a/package/netifd/files/lib/network/config.sh b/package/netifd/files/lib/network/config.sh index 778c964e7b..4ce362eb19 100755 --- a/package/netifd/files/lib/network/config.sh +++ b/package/netifd/files/lib/network/config.sh @@ -40,6 +40,13 @@ scan_interfaces() { config_foreach fixup_interface interface } +prepare_interface_bridge() { + local config="$1" + + [ -n "$config" ] || return 0 + ubus call network.interface."$config" prepare +} + setup_interface() { local iface="$1" local config="$2" -- cgit v1.2.3