From d66d2ad104751b30d5d09e3feac4e5dff12429b1 Mon Sep 17 00:00:00 2001 From: Luka Perkov Date: Thu, 23 Jan 2014 11:33:41 +0000 Subject: [PATCH] base-files: add ucidef_add_switch_port function Signed-off-by: Luka Perkov SVN-Revision: 39372 --- package/base-files/Makefile | 2 +- package/base-files/files/lib/functions/uci-defaults.sh | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/package/base-files/Makefile b/package/base-files/Makefile index d6c59384ee11..33c0c5b24d50 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -11,7 +11,7 @@ include $(INCLUDE_DIR)/kernel.mk include $(INCLUDE_DIR)/version.mk PKG_NAME:=base-files -PKG_RELEASE:=150 +PKG_RELEASE:=151 PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/ PKG_BUILD_DEPENDS:=opkg/host diff --git a/package/base-files/files/lib/functions/uci-defaults.sh b/package/base-files/files/lib/functions/uci-defaults.sh index bf6fe1e30572..da2093bbb7bf 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 <