Skip to content
Snippets Groups Projects
Commit f792997b authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-simple-tc: add site validator

parent de633e9b
No related branches found
No related tags found
No related merge requests found
include $(TOPDIR)/rules.mk
PKG_NAME:=gluon-simple-tc
PKG_VERSION:=2
PKG_VERSION:=3
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
include $(GLUONDIR)/include/package.mk
define Package/gluon-simple-tc
SECTION:=gluon
......@@ -32,4 +32,9 @@ define Package/gluon-simple-tc/install
$(CP) ./files/* $(1)/
endef
define Package/gluon-simple-tc/postinst
#!/bin/sh
$(call GluonCheckSite,check_site.lua)
endef
$(eval $(call BuildPackage,gluon-simple-tc))
local function check_entry(k, _)
local prefix = string.format('simple_tc[%q].', k)
need_string(prefix .. 'ifname')
need_boolean(prefix .. 'enabled')
need_number(prefix .. 'limit_egress')
need_number(prefix .. 'limit_ingress')
end
need_table('simple_tc', check_entry)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment