Skip to content

Commit

Permalink
openwrt app过滤模块所有源码,包含内核、luci和应用层脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
Derry committed Jun 28, 2019
1 parent 14c3ef1 commit 6e7c737
Show file tree
Hide file tree
Showing 27 changed files with 3,589 additions and 368 deletions.
2 changes: 0 additions & 2 deletions kernel/Makefile

This file was deleted.

48 changes: 0 additions & 48 deletions kernel/af_utils.c

This file was deleted.

317 changes: 0 additions & 317 deletions kernel/app_filter.c

This file was deleted.

Empty file removed kernel/flow_detection.c
Empty file.
Empty file removed kernel/flow_detection.h
Empty file.
14 changes: 14 additions & 0 deletions luci-app-oaf/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

#
# This is free software, licensed under the Apache License, Version 2.0 .
#

include $(TOPDIR)/rules.mk

LUCI_TITLE:=Open App Filter Module
LUCI_PKGARCH:=all
PKG_NAME:=luci-app-oaf
PKG_VERSION:=1.0
PKG_RELEASE:=1
include $(TOPDIR)/feeds/luci/luci.mk
# call BuildPackage - OpenWrt buildroot signature
12 changes: 12 additions & 0 deletions luci-app-oaf/luasrc/controller/appfilter.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module("luci.controller.appfilter", package.seeall)

function index()
if not nixio.fs.access("/etc/config/appfilter") then
return
end

local page

page = entry({"admin", "network", "appfilter"}, cbi("appfilter/appfilter"), _("appfilter"))
page.dependent = true
end
Loading

0 comments on commit 6e7c737

Please sign in to comment.