mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-01 08:03:56 +08:00
🤞 Sync 2026-09-20 00:13:18
This commit is contained in:
1 parent
f42318f91e
commit
e4a2d7800e
4 files changed
+23
-21
No files matched your search
@@ -1,8 +1,8 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=beszel-agent
|
PKG_NAME:=beszel-agent
|
||||||
PKG_VERSION:=0.19.0
|
PKG_VERSION:=0.20.0
|
||||||
PKG_RELEASE:=9
|
PKG_RELEASE:=10
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)_linux_$(or $(BESZEL_GOARCH),arm64).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)_linux_$(or $(BESZEL_GOARCH),arm64).tar.gz
|
||||||
PKG_SOURCE_URL:=https://github.com/henrygd/beszel/releases/download/v$(PKG_VERSION)/
|
PKG_SOURCE_URL:=https://github.com/henrygd/beszel/releases/download/v$(PKG_VERSION)/
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=luci-app-passwall2
|
PKG_NAME:=luci-app-passwall2
|
||||||
PKG_VERSION:=26.9.16
|
PKG_VERSION:=26.9.16
|
||||||
PKG_RELEASE:=128
|
PKG_RELEASE:=129
|
||||||
PKG_PO_VERSION:=$(PKG_VERSION)
|
PKG_PO_VERSION:=$(PKG_VERSION)
|
||||||
|
|
||||||
PKG_CONFIG_DEPENDS:= \
|
PKG_CONFIG_DEPENDS:= \
|
||||||
|
|||||||
@@ -1053,8 +1053,8 @@ get_config() {
|
|||||||
DEFAULT_DNSMASQ_CONF_DIR=/tmp/dnsmasq.d
|
DEFAULT_DNSMASQ_CONF_DIR=/tmp/dnsmasq.d
|
||||||
DNSMASQ_CONF_DIR=${DEFAULT_DNSMASQ_CONF_DIR}
|
DNSMASQ_CONF_DIR=${DEFAULT_DNSMASQ_CONF_DIR}
|
||||||
DEFAULT_DNSMASQ_CFGID="$(uci -q show "dhcp.@dnsmasq[0]" | awk 'NR==1 {split($0, conf, /[.=]/); print conf[2]}')"
|
DEFAULT_DNSMASQ_CFGID="$(uci -q show "dhcp.@dnsmasq[0]" | awk 'NR==1 {split($0, conf, /[.=]/); print conf[2]}')"
|
||||||
if [ -f "/tmp/etc/dnsmasq.conf.$DEFAULT_DNSMASQ_CFGID" ]; then
|
if [ -f "/var/etc/dnsmasq.conf.$DEFAULT_DNSMASQ_CFGID" ]; then
|
||||||
DNSMASQ_CONF_DIR="$(awk -F '=' '/^conf-dir=/ {print $2}' "/tmp/etc/dnsmasq.conf.$DEFAULT_DNSMASQ_CFGID")"
|
DNSMASQ_CONF_DIR="$(awk -F '=' '/^conf-dir=/ {print $2}' "/var/etc/dnsmasq.conf.$DEFAULT_DNSMASQ_CFGID")"
|
||||||
if [ -n "$DNSMASQ_CONF_DIR" ]; then
|
if [ -n "$DNSMASQ_CONF_DIR" ]; then
|
||||||
DNSMASQ_CONF_DIR=${DNSMASQ_CONF_DIR%*/}
|
DNSMASQ_CONF_DIR=${DNSMASQ_CONF_DIR%*/}
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -120,23 +120,25 @@ function copy_instance(var)
|
|||||||
local TMP_DNSMASQ_PATH = var["TMP_DNSMASQ_PATH"]
|
local TMP_DNSMASQ_PATH = var["TMP_DNSMASQ_PATH"]
|
||||||
local conf_lines = {}
|
local conf_lines = {}
|
||||||
local DEFAULT_DNSMASQ_CFGID = sys.exec("echo -n $(uci -q show dhcp.@dnsmasq[0] | awk 'NR==1 {split($0, conf, /[.=]/); print conf[2]}')")
|
local DEFAULT_DNSMASQ_CFGID = sys.exec("echo -n $(uci -q show dhcp.@dnsmasq[0] | awk 'NR==1 {split($0, conf, /[.=]/); print conf[2]}')")
|
||||||
for line in io.lines("/tmp/etc/dnsmasq.conf." .. DEFAULT_DNSMASQ_CFGID) do
|
if fs.access("/var/etc/dnsmasq.conf." .. DEFAULT_DNSMASQ_CFGID) then
|
||||||
local filter
|
for line in io.lines("/var/etc/dnsmasq.conf." .. DEFAULT_DNSMASQ_CFGID) do
|
||||||
if line:find("passwall2") then filter = true end
|
local filter
|
||||||
if line:find("ubus") then filter = true end
|
if line:find("passwall2") then filter = true end
|
||||||
if line:find("dhcp") then filter = true end
|
if line:find("ubus") then filter = true end
|
||||||
if line:find("server=") == 1 then filter = true end
|
if line:find("dhcp") then filter = true end
|
||||||
if line:find("port=") == 1 then filter = true end
|
if line:find("server=") == 1 then filter = true end
|
||||||
if line:find("conf%-dir=") == 1 then
|
if line:find("port=") == 1 then filter = true end
|
||||||
filter = true
|
if line:find("conf%-dir=") == 1 then
|
||||||
if TMP_DNSMASQ_PATH then
|
filter = true
|
||||||
local tmp_path = line:sub(1 + #"conf-dir=")
|
if TMP_DNSMASQ_PATH then
|
||||||
sys.call(string.format("cp -r %s/* %s/ 2>/dev/null", tmp_path, TMP_DNSMASQ_PATH))
|
local tmp_path = line:sub(1 + #"conf-dir=")
|
||||||
|
sys.call(string.format("cp -r %s/* %s/ 2>/dev/null", tmp_path, TMP_DNSMASQ_PATH))
|
||||||
|
end
|
||||||
|
end
|
||||||
|
if line:find("address=") == 1 or (line:find("server=") == 1 and line:find("/")) then filter = nil end
|
||||||
|
if not filter then
|
||||||
|
tinsert(conf_lines, line)
|
||||||
end
|
end
|
||||||
end
|
|
||||||
if line:find("address=") == 1 or (line:find("server=") == 1 and line:find("/")) then filter = nil end
|
|
||||||
if not filter then
|
|
||||||
tinsert(conf_lines, line)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
tinsert(conf_lines, "port=" .. LISTEN_PORT)
|
tinsert(conf_lines, "port=" .. LISTEN_PORT)
|
||||||
|
|||||||
Reference in new issue
Block a user