From d66d2ad104751b30d5d09e3feac4e5dff12429b1 Mon Sep 17 00:00:00 2001 From: Luka Perkov Date: Thu, 23 Jan 2014 11:33:41 +0000 Subject: base-files: add ucidef_add_switch_port function Signed-off-by: Luka Perkov SVN-Revision: 39372 --- package/base-files/files/lib/functions/uci-defaults.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'package/base-files/files/lib/functions') diff --git a/package/base-files/files/lib/functions/uci-defaults.sh b/package/base-files/files/lib/functions/uci-defaults.sh index bf6fe1e305..da2093bbb7 100644 --- a/package/base-files/files/lib/functions/uci-defaults.sh +++ b/package/base-files/files/lib/functions/uci-defaults.sh @@ -234,3 +234,13 @@ set network.@switch_vlan[-1].ports='$ports' EOF } +ucidef_add_switch_port() { + local device=$1 + local port=$2 + uci batch <