mirror of
https://github.com/kenzok8/small-package.git
synced 2026-02-06 23:08:07 +08:00
update 2022-05-21 23:42:02
This commit is contained in:
@@ -5,12 +5,12 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=brook
|
PKG_NAME:=brook
|
||||||
PKG_VERSION:=20220501
|
PKG_VERSION:=20220515
|
||||||
PKG_RELEASE:=$(AUTORELEASE)
|
PKG_RELEASE:=$(AUTORELEASE)
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://codeload.github.com/txthinking/brook/tar.gz/v$(PKG_VERSION)?
|
PKG_SOURCE_URL:=https://codeload.github.com/txthinking/brook/tar.gz/v$(PKG_VERSION)?
|
||||||
PKG_HASH:=31474d3a9667a153986710b989d99a4f971255f407d47eebaf15b6fc9c2f4128
|
PKG_HASH:=e054d0c3d0090b2015e9ff5e94a15b452a3e4e1de4588542972cc6c06965537b
|
||||||
|
|
||||||
PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
|
PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
|
||||||
PKG_LICENSE:=GPL-3.0
|
PKG_LICENSE:=GPL-3.0
|
||||||
|
|||||||
@@ -2,11 +2,11 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=luci-app-ikoolproxy
|
PKG_NAME:=luci-app-ikoolproxy
|
||||||
PKG_VERSION:=3.8.5
|
PKG_VERSION:=3.8.5
|
||||||
PKG_RELEASE:=20220324
|
PKG_RELEASE:=20220521
|
||||||
|
|
||||||
PKG_MAINTAINER:=panda-mute <wxuzju@gmail.com>
|
PKG_MAINTAINER:=panda-mute <wxuzju@gmail.com>
|
||||||
|
|
||||||
LUCI_TITLE:=LuCI support for koolproxy
|
LUCI_TITLE:=LuCI support for ikoolproxy
|
||||||
LUCI_PKGARCH:=all
|
LUCI_PKGARCH:=all
|
||||||
LUCI_DEPENDS:=+koolproxy +openssl-util +ipset +dnsmasq-full +@BUSYBOX_CONFIG_DIFF +iptables-mod-nat-extra +wget
|
LUCI_DEPENDS:=+koolproxy +openssl-util +ipset +dnsmasq-full +@BUSYBOX_CONFIG_DIFF +iptables-mod-nat-extra +wget
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,14 @@
|
|||||||
module("luci.controller.koolproxy",package.seeall)
|
module("luci.controller.koolproxy", package.seeall)
|
||||||
|
|
||||||
function index()
|
function index()
|
||||||
if not nixio.fs.access("/etc/config/koolproxy") then
|
if not nixio.fs.access("/etc/config/koolproxy") then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
entry({"admin", "services", "koolproxy"}, alias("admin", "services", "koolproxy", "basic"), _("iKoolProxy 滤广告"), 1).dependent = true
|
local page = entry({"admin", "services", "koolproxy"}, alias("admin", "services", "koolproxy", "basic"), _("iKoolProxy 滤广告"), 1)
|
||||||
|
page.dependent = true
|
||||||
|
page.acl_depends = { "luci-app-ikoolproxy" }
|
||||||
|
|
||||||
entry({"admin", "services", "koolproxy", "basic"}, cbi("koolproxy/basic"), _("基本设置"), 1).leaf = true
|
entry({"admin", "services", "koolproxy", "basic"}, cbi("koolproxy/basic"), _("基本设置"), 1).leaf = true
|
||||||
entry({"admin", "services", "koolproxy", "control"}, cbi("koolproxy/control"), _("访问控制"), 2).leaf = true
|
entry({"admin", "services", "koolproxy", "control"}, cbi("koolproxy/control"), _("访问控制"), 2).leaf = true
|
||||||
entry({"admin", "services", "koolproxy", "add_rule"}, cbi("koolproxy/add_rule"), _("规则订阅"), 3).leaf = true
|
entry({"admin", "services", "koolproxy", "add_rule"}, cbi("koolproxy/add_rule"), _("规则订阅"), 3).leaf = true
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ uci -q batch <<-EOF >/dev/null
|
|||||||
add ucitrack koolproxy
|
add ucitrack koolproxy
|
||||||
set ucitrack.@koolproxy[-1].init=koolproxy
|
set ucitrack.@koolproxy[-1].init=koolproxy
|
||||||
commit ucitrack
|
commit ucitrack
|
||||||
|
|
||||||
delete firewall.koolproxy
|
delete firewall.koolproxy
|
||||||
set firewall.koolproxy=include
|
set firewall.koolproxy=include
|
||||||
set firewall.koolproxy.type=script
|
set firewall.koolproxy.type=script
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"luci-app-godproxy": {
|
"luci-app-ikoolproxy": {
|
||||||
"description": "Grant UCI access for luci-app-godproxy",
|
"description": "Grant UCI access for luci-app-ikoolproxy",
|
||||||
"read": {
|
"read": {
|
||||||
"uci": [ "koolproxy" ]
|
"uci": [ "koolproxy" ]
|
||||||
},
|
},
|
||||||
@@ -2,11 +2,11 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=luci-app-ikoolproxy
|
PKG_NAME:=luci-app-ikoolproxy
|
||||||
PKG_VERSION:=3.8.5
|
PKG_VERSION:=3.8.5
|
||||||
PKG_RELEASE:=20220324
|
PKG_RELEASE:=20220521
|
||||||
|
|
||||||
PKG_MAINTAINER:=panda-mute <wxuzju@gmail.com>
|
PKG_MAINTAINER:=panda-mute <wxuzju@gmail.com>
|
||||||
|
|
||||||
LUCI_TITLE:=LuCI support for koolproxy
|
LUCI_TITLE:=LuCI support for ikoolproxy
|
||||||
LUCI_PKGARCH:=all
|
LUCI_PKGARCH:=all
|
||||||
LUCI_DEPENDS:=+koolproxy +openssl-util +ipset +dnsmasq-full +@BUSYBOX_CONFIG_DIFF +iptables-mod-nat-extra +wget
|
LUCI_DEPENDS:=+koolproxy +openssl-util +ipset +dnsmasq-full +@BUSYBOX_CONFIG_DIFF +iptables-mod-nat-extra +wget
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,14 @@
|
|||||||
module("luci.controller.koolproxy",package.seeall)
|
module("luci.controller.koolproxy", package.seeall)
|
||||||
|
|
||||||
function index()
|
function index()
|
||||||
if not nixio.fs.access("/etc/config/koolproxy") then
|
if not nixio.fs.access("/etc/config/koolproxy") then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
entry({"admin", "services", "koolproxy"}, alias("admin", "services", "koolproxy", "basic"), _("iKoolProxy 滤广告"), 1).dependent = true
|
local page = entry({"admin", "services", "koolproxy"}, alias("admin", "services", "koolproxy", "basic"), _("iKoolProxy 滤广告"), 1)
|
||||||
|
page.dependent = true
|
||||||
|
page.acl_depends = { "luci-app-ikoolproxy" }
|
||||||
|
|
||||||
entry({"admin", "services", "koolproxy", "basic"}, cbi("koolproxy/basic"), _("基本设置"), 1).leaf = true
|
entry({"admin", "services", "koolproxy", "basic"}, cbi("koolproxy/basic"), _("基本设置"), 1).leaf = true
|
||||||
entry({"admin", "services", "koolproxy", "control"}, cbi("koolproxy/control"), _("访问控制"), 2).leaf = true
|
entry({"admin", "services", "koolproxy", "control"}, cbi("koolproxy/control"), _("访问控制"), 2).leaf = true
|
||||||
entry({"admin", "services", "koolproxy", "add_rule"}, cbi("koolproxy/add_rule"), _("规则订阅"), 3).leaf = true
|
entry({"admin", "services", "koolproxy", "add_rule"}, cbi("koolproxy/add_rule"), _("规则订阅"), 3).leaf = true
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ uci -q batch <<-EOF >/dev/null
|
|||||||
add ucitrack koolproxy
|
add ucitrack koolproxy
|
||||||
set ucitrack.@koolproxy[-1].init=koolproxy
|
set ucitrack.@koolproxy[-1].init=koolproxy
|
||||||
commit ucitrack
|
commit ucitrack
|
||||||
|
|
||||||
delete firewall.koolproxy
|
delete firewall.koolproxy
|
||||||
set firewall.koolproxy=include
|
set firewall.koolproxy=include
|
||||||
set firewall.koolproxy.type=script
|
set firewall.koolproxy.type=script
|
||||||
|
|||||||
@@ -17,12 +17,16 @@ test -n "${hostname}" || hostname="OpenWrt"
|
|||||||
if [ "$(uci -q get wireless.${radio}.band)" = "5g" ]; then
|
if [ "$(uci -q get wireless.${radio}.band)" = "5g" ]; then
|
||||||
uci -q set wireless.default_${radio}.ssid="${SSID}_5G"
|
uci -q set wireless.default_${radio}.ssid="${SSID}_5G"
|
||||||
if test -z "${htmode##HE*}"; then
|
if test -z "${htmode##HE*}"; then
|
||||||
uci -q set wireless.${radio}.htmode="HE160"
|
if [[ $htmode == "HE20" || $htmode == "HE40" ]]; then
|
||||||
|
uci -q set wireless.${radio}.htmode="HE80"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
uci -q set wireless.${radio}.htmode="VHT80"
|
uci -q set wireless.${radio}.htmode="VHT80"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
uci -q set wireless.${radio}.htmode="HT40"
|
uci -q set wireless.${radio}.htmode="HT40"
|
||||||
|
uci -q set wireless.${radio}.noscan='1'
|
||||||
|
uci -q set wireless.${radio}.vendor_vht='1'
|
||||||
uci -q set wireless.default_${radio}.ssid="${SSID}_2.4G"
|
uci -q set wireless.default_${radio}.ssid="${SSID}_2.4G"
|
||||||
fi
|
fi
|
||||||
uci -q set wireless.default_${radio}.device="${radio}"
|
uci -q set wireless.default_${radio}.device="${radio}"
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
version=`uci -q get base_config.@status[0].version`
|
||||||
|
|
||||||
|
test $version -lt 3 && {
|
||||||
|
uci -q del turboacc.config.sw_flow
|
||||||
|
uci commit turboacc
|
||||||
|
}
|
||||||
|
|
||||||
|
uci -q set base_config.@status[0].version=3
|
||||||
|
uci commit base_config
|
||||||
Reference in New Issue
Block a user