base-files: add function ucidef_set_interface_raw to enable default configuration on interfaces other than lan and wan.

Signed-off-by: Micke Prag <micke.prag@telldus.se>

SVN-Revision: 48976
This commit is contained in:
John Crispin 2016-03-10 19:07:17 +00:00
parent 4e6e23582b
commit 63c9caaa91
1 changed files with 6 additions and 0 deletions

View File

@ -89,6 +89,12 @@ ucidef_set_interfaces_lan_wan() {
json_select ..
}
ucidef_set_interface_raw() {
json_select_object network
_ucidef_set_interface "$@"
json_select ..
}
_ucidef_add_switch_port() {
# inherited: $num $device $need_tag $role $index $prev_role
# inherited: $n_cpu $n_ports $n_vlan $cpu0 $cpu1 $cpu2 $cpu3 $cpu4 $cpu5