From d802b2e8f350a00aa9e2c1c116df22943cab1ead Mon Sep 17 00:00:00 2001 From: nbd 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28745 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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 778c964e7..4ce362eb1 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