summaryrefslogtreecommitdiffstats
path: root/package/netifd/files/lib
diff options
context:
space:
mode:
Diffstat (limited to 'package/netifd/files/lib')
-rwxr-xr-xpackage/netifd/files/lib/network/config.sh7
1 files changed, 7 insertions, 0 deletions
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"