Author: blogic Date: 2016-03-10 20:07:17 +0100 (Thu, 10 Mar 2016) New Revision: 48976
Modified: trunk/package/base-files/files/lib/functions/uci-defaults.sh Log: base-files: add function ucidef_set_interface_raw to enable default configuration on interfaces other than lan and wan. Signed-off-by: Micke Prag <[email protected]> Modified: trunk/package/base-files/files/lib/functions/uci-defaults.sh =================================================================== --- trunk/package/base-files/files/lib/functions/uci-defaults.sh 2016-03-09 06:34:29 UTC (rev 48975) +++ trunk/package/base-files/files/lib/functions/uci-defaults.sh 2016-03-10 19:07:17 UTC (rev 48976) @@ -89,6 +89,12 @@ 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 _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
