aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/lib/functions
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2016-03-10 19:07:17 +0000
committerJohn Crispin <john@openwrt.org>2016-03-10 19:07:17 +0000
commit63c9caaa91d2e6a2616078fdf131508e94add5dd (patch)
tree0db789b61e493c77be5a5fb0ded2a616ec8d4b15 /package/base-files/files/lib/functions
parent4e6e23582b963f963e8a44eb5db7b30749a7a4d3 (diff)
downloadupstream-63c9caaa91d2e6a2616078fdf131508e94add5dd.tar.gz
upstream-63c9caaa91d2e6a2616078fdf131508e94add5dd.tar.bz2
upstream-63c9caaa91d2e6a2616078fdf131508e94add5dd.zip
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
Diffstat (limited to 'package/base-files/files/lib/functions')
-rwxr-xr-xpackage/base-files/files/lib/functions/uci-defaults.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/base-files/files/lib/functions/uci-defaults.sh b/package/base-files/files/lib/functions/uci-defaults.sh
index 31e468731a..b097fba37c 100755
--- a/package/base-files/files/lib/functions/uci-defaults.sh
+++ b/package/base-files/files/lib/functions/uci-defaults.sh
@@ -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