base-files: add board.d support for bridge device
[openwrt/staging/chunkeey.git] / package / base-files / files / lib / functions / uci-defaults.sh
index 27a409fe3b5ebcf14cacd63847c26f8e21f19cbd..39bbeda24c17e4703863f993b1f355981a8a50c5 100755 (executable)
@@ -90,6 +90,10 @@ ucidef_set_interfaces_lan_wan() {
        ucidef_set_interface_wan "$wan_if"
 }
 
+ucidef_set_bridge_device() {
+       json_add_string bridge "${1:switch0}"
+}
+
 _ucidef_add_switch_port() {
        # inherited: $num $device $need_tag $want_untag $role $index $prev_role
        # inherited: $n_cpu $n_ports $n_vlan $cpu0 $cpu1 $cpu2 $cpu3 $cpu4 $cpu5