diff --git a/linkease/nas/quickstart/Makefile b/linkease/nas/quickstart/Makefile index d4b386c0..42986c9b 100644 --- a/linkease/nas/quickstart/Makefile +++ b/linkease/nas/quickstart/Makefile @@ -10,11 +10,11 @@ include $(TOPDIR)/rules.mk PKG_ARCH_quickstart:=$(ARCH) PKG_NAME:=quickstart -PKG_VERSION:=0.8.6 +PKG_VERSION:=0.8.7 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-binary-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://github.com/linkease/istore-packages/releases/download/prebuilt/ -PKG_HASH:=8d4c644af0b0413bff8e605c27d465a59f89869d92c1f3cfa00f9590d3a3b405 +PKG_HASH:=994ea38fcc4002e9dffd1ffe2d7cdf828e9365b6a2ba61c61c257f7c2af131a5 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-binary-$(PKG_VERSION) diff --git a/luci-app-ddns-go/ddns-go/Makefile b/luci-app-ddns-go/ddns-go/Makefile index be42828f..3838b671 100644 --- a/luci-app-ddns-go/ddns-go/Makefile +++ b/luci-app-ddns-go/ddns-go/Makefile @@ -8,14 +8,14 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ddns-go -KG_VERSION:=6.1.1 +KG_VERSION:=6.1.2 PKG_RELEASE:=1 PKG_SOURCE_PROTO:=git PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://github.com/jeessy2/ddns-go.git -PKG_MIRROR_HASH:=738e16f09df958a8425e19fb717c1d2365632756babea2332e17d500b4ee1266 -PKG_SOURCE_VERSION:=6410dad8a20411c75c8eca2026a2588ae355ccb1 +PKG_MIRROR_HASH:=d5868e26981a31e9fb5f772c713e91fe38a7270a9bbf089e641f754bc6b06010 +PKG_SOURCE_VERSION:=52ef2b7fbf854df52a2996d926b869524a003326 PKG_LICENSE:=AGPL-3.0-only PKG_LICENSE_FILES:=LICENSE diff --git a/luci-app-ddns-go/luci-app-ddns-go/Makefile b/luci-app-ddns-go/luci-app-ddns-go/Makefile index d063512f..9bb6936a 100644 --- a/luci-app-ddns-go/luci-app-ddns-go/Makefile +++ b/luci-app-ddns-go/luci-app-ddns-go/Makefile @@ -1,14 +1,14 @@ # SPDX-License-Identifier: GPL-3.0-only # -# Copyright (C) 2021-2022 sirpdboy https://github.com/sirpdboy/luci-app-ddns-go -# +# Copyright (C) 2021-2024 sirpdboy +# https://github.com/sirpdboy/luci-app-ddns-go # This is free software, licensed under the Apache License, Version 2.0 . # include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-ddns-go -PKG_VERSION:=1.4.1 -PKG_RELEASE:=10 +PKG_VERSION:=1.4.2 +PKG_RELEASE:=20240227 LUCI_TITLE:=LuCI Support for Dynamic ddns-go Client LUCI_DEPENDS:=+ddns-go diff --git a/luci-app-ddns-go/luci-app-ddns-go/luasrc/controller/ddns-go.lua b/luci-app-ddns-go/luci-app-ddns-go/luasrc/controller/ddns-go.lua index 3e5f152b..152c1ca0 100644 --- a/luci-app-ddns-go/luci-app-ddns-go/luasrc/controller/ddns-go.lua +++ b/luci-app-ddns-go/luci-app-ddns-go/luasrc/controller/ddns-go.lua @@ -12,7 +12,7 @@ function index() e.dependent=false e.acl_depends={ "luci-app-ddns-go" } entry({"admin", "services", "ddns-go", "setting"}, cbi("ddns-go"), _("Base Setting"), 20).leaf=true - entry({"admin", "services", "ddns-go", "ddns-go"}, template("ddns-go"), _("DDNS-GO"), 30).leaf = true + entry({"admin", "services", "ddns-go", "ddns-go"}, template("ddns-go"), _("DDNS-GO Control panel"), 30).leaf = true entry({"admin", "services", "ddnsgo_status"}, call("act_status")) end diff --git a/luci-app-ddns-go/luci-app-ddns-go/luasrc/model/cbi/ddns-go.lua b/luci-app-ddns-go/luci-app-ddns-go/luasrc/model/cbi/ddns-go.lua index e44081e5..4e88a9f5 100644 --- a/luci-app-ddns-go/luci-app-ddns-go/luasrc/model/cbi/ddns-go.lua +++ b/luci-app-ddns-go/luci-app-ddns-go/luasrc/model/cbi/ddns-go.lua @@ -28,7 +28,7 @@ o.default=5 o = s:option(Flag,"skipverify",translate("Skip verifying certificates")) o.default = 0 -o = s:option(Value, "dns",translate("Specify DNS resolution server")) +o = s:option(ListValue, "dns",translate("Specify DNS resolution server")) o:value("223.5.5.5", ""..translate("Ali").." DNS (223.5.5.5)") o:value("223.6.6.6", ""..translate("Ali").." DNS (223.6.6.6)") o:value("119.29.29.29", ""..translate("Tencent").." DNS (119.29.29.29)") diff --git a/luci-app-ddns-go/luci-app-ddns-go/luasrc/view/ddns-go.htm b/luci-app-ddns-go/luci-app-ddns-go/luasrc/view/ddns-go.htm index 2dd5c707..7bfbcd78 100644 --- a/luci-app-ddns-go/luci-app-ddns-go/luasrc/view/ddns-go.htm +++ b/luci-app-ddns-go/luci-app-ddns-go/luasrc/view/ddns-go.htm @@ -1,13 +1,16 @@ <%# - Copyright 2021-2022 sirpdboy Wich + Copyright 2008-2024 by sirpdboy https://github.com/sirpdboy/luci-app-ddns-go Licensed to the public under the Apache License 2.0. -%> - +<% + local running = luci.sys.exec("pidof ddns-go | awk -F ' ' '{print $1}'") +%> <%+header%>
- @@ -19,4 +22,13 @@ document.getElementById("ddnsgo").height = document.documentElement.clientHeight; } +<% else %> + +
+ +

<%:The DDNS-GO service is not running.%>

+

<%:Please enable the DDNS-GO service%>

+
+<% end -%> +
<%+footer%> diff --git a/luci-app-ddns-go/luci-app-ddns-go/po/zh-cn/ddns-go.po b/luci-app-ddns-go/luci-app-ddns-go/po/zh-cn/ddns-go.po index a374f12d..f156db9f 100644 --- a/luci-app-ddns-go/luci-app-ddns-go/po/zh-cn/ddns-go.po +++ b/luci-app-ddns-go/luci-app-ddns-go/po/zh-cn/ddns-go.po @@ -13,6 +13,9 @@ msgstr "基本设置" msgid "Running state" msgstr "运行状态" +msgid "DDNS-GO Control panel" +msgstr "DDNS-GO操作台" + msgid "The DDNS-GO service is running." msgstr "DDNS-GO服务已启动" @@ -22,6 +25,9 @@ msgstr "DDNS-GO服务未启动" msgid "DDNS-GO Status" msgstr "DDNS-GO服务状态" +msgid "Please enable the DDNS-GO service" +msgstr "请将DDNS-GO服务启用" + msgid "Click the new page to open ddns-go" msgstr "点击打开ddns-go后台" diff --git a/luci-app-ddns-go/luci-app-ddns-go/po/zh_Hans/ddns-go.po b/luci-app-ddns-go/luci-app-ddns-go/po/zh_Hans/ddns-go.po index a374f12d..f156db9f 100644 --- a/luci-app-ddns-go/luci-app-ddns-go/po/zh_Hans/ddns-go.po +++ b/luci-app-ddns-go/luci-app-ddns-go/po/zh_Hans/ddns-go.po @@ -13,6 +13,9 @@ msgstr "基本设置" msgid "Running state" msgstr "运行状态" +msgid "DDNS-GO Control panel" +msgstr "DDNS-GO操作台" + msgid "The DDNS-GO service is running." msgstr "DDNS-GO服务已启动" @@ -22,6 +25,9 @@ msgstr "DDNS-GO服务未启动" msgid "DDNS-GO Status" msgstr "DDNS-GO服务状态" +msgid "Please enable the DDNS-GO service" +msgstr "请将DDNS-GO服务启用" + msgid "Click the new page to open ddns-go" msgstr "点击打开ddns-go后台" diff --git a/luci-app-netdata/Makefile b/luci-app-netdata/Makefile index 3b81668f..b82a794b 100644 --- a/luci-app-netdata/Makefile +++ b/luci-app-netdata/Makefile @@ -11,8 +11,8 @@ LUCI_DEPENDS:=+netdata LUCI_PKGARCH:=all PKG_NAME:=luci-app-netdata -PKG_VERSION:=1.1 -PKG_RELEASE:=20221124 +PKG_VERSION:=1.2 +PKG_RELEASE:=20240227 define Build/Compile endef diff --git a/luci-app-netdata/luasrc/controller/netdata.lua b/luci-app-netdata/luasrc/controller/netdata.lua index 95b71ad1..0d89cd33 100644 --- a/luci-app-netdata/luasrc/controller/netdata.lua +++ b/luci-app-netdata/luasrc/controller/netdata.lua @@ -7,9 +7,9 @@ function index() if not nixio.fs.access("/etc/config/netdata") then return end - local page - entry({"admin", "status", "netdata"}, alias("admin", "status", "netdata", "setting"),_("NetData"), 10).dependent = true - + local e = entry({"admin", "status", "netdata"}, alias("admin", "status", "netdata", "setting"),_("NetData"), 10) + e.dependent = false + e.acl_depends = { "luci-app-netdata" } entry({"admin", "status", "netdata", "setting"}, cbi("netdata/netdata"), _("Base Setting"), 20).leaf=true entry({"admin", "status", "netdata", "netdata"}, template("netdata"), _("NetData"), 30).leaf = true entry({"admin", "status", "netdata_status"}, call("act_status")) diff --git a/luci-app-netdata/luasrc/view/netdata.htm b/luci-app-netdata/luasrc/view/netdata.htm index eea0c50d..9fc5496e 100644 --- a/luci-app-netdata/luasrc/view/netdata.htm +++ b/luci-app-netdata/luasrc/view/netdata.htm @@ -1,12 +1,16 @@ <%# - Copyright 2008-2022 by sirpdboy + Copyright 2008-2024 by sirpdboy https://github.com/sirpdboy/luci-app-netdata Licensed to the public under the Apache License 2.0. -%> - +<% + local running = luci.sys.exec("pidof netdata | awk -F ' ' '{print $1}'") +%> <%+header%> +
+<% if tonumber(running) ~= nil then %>
@@ -17,4 +21,13 @@ document.getElementById("netdata").height = document.documentElement.clientHeight; } +<% else %> + +
+ +

<%:The Netdata service is not running.%>

+

<%:Please enable the NetData service%>

+
+<% end -%> + <%+footer%> diff --git a/luci-app-netdata/po/zh-cn/netdata.po b/luci-app-netdata/po/zh-cn/netdata.po index 3e52538d..81dc3c3b 100644 --- a/luci-app-netdata/po/zh-cn/netdata.po +++ b/luci-app-netdata/po/zh-cn/netdata.po @@ -13,6 +13,9 @@ msgstr "NetData服务未启动" msgid "NetData Status" msgstr "NetData服务状态" +msgid "Please enable the NetData service" +msgstr "请将homebox服务启用" + msgid "NetData" msgstr "实时监控" diff --git a/luci-app-netdata/po/zh_Hans b/luci-app-netdata/po/zh_Hans deleted file mode 120000 index 41451e4a..00000000 --- a/luci-app-netdata/po/zh_Hans +++ /dev/null @@ -1 +0,0 @@ -zh-cn \ No newline at end of file diff --git a/luci-app-netdata/po/zh_Hans/netdata.po b/luci-app-netdata/po/zh_Hans/netdata.po new file mode 100644 index 00000000..81dc3c3b --- /dev/null +++ b/luci-app-netdata/po/zh_Hans/netdata.po @@ -0,0 +1,32 @@ +msgid "" +msgstr "Content-Type: text/plain; charset=UTF-8" + +msgid "Running state" +msgstr "运行状态" + +msgid "The Netdata service is running." +msgstr "NetData服务已启动" + +msgid "The Netdata service is not running." +msgstr "NetData服务未启动" + +msgid "NetData Status" +msgstr "NetData服务状态" + +msgid "Please enable the NetData service" +msgstr "请将homebox服务启用" + +msgid "NetData" +msgstr "实时监控" + +msgid "Set the netdata access port" +msgstr "设置访问端口" + +msgid "Base Setting" +msgstr "基本设置" + +msgid "Netdata is high-fidelity infrastructure monitoring and troubleshooting.Open-source, free, preconfigured, opinionated, and always real-time." +msgstr "Netdata是高保真的基础设施监控和故障排除。开源、免费、预配置、始终实时." + +msgid "
For specific usage, see:" +msgstr "
具体使用方法参见:" \ No newline at end of file diff --git a/luci-app-netdata/root/etc/uci-defaults/40_luci-app-netdata b/luci-app-netdata/root/etc/uci-defaults/40_luci-app-netdata index c091f6e0..aa554f8c 100644 --- a/luci-app-netdata/root/etc/uci-defaults/40_luci-app-netdata +++ b/luci-app-netdata/root/etc/uci-defaults/40_luci-app-netdata @@ -7,4 +7,5 @@ [ -f /usr/share/netdata/webcn/index.html ] && mv -f /usr/share/netdata/webcn/index.html /usr/share/netdata/web/index.html [ -f /usr/share/netdata/webcn/netdata.init ] && mv -f /usr/share/netdata/webcn/netdata.init /etc/init.d/netdata rm -rf /tmp/luci-modulecache /tmp/luci-indexcache* +chmod +x chmod +x /etc/init.d/netdata exit 0 diff --git a/luci-app-netspeedtest/Makefile b/luci-app-netspeedtest/Makefile index 27e41f5e..c95f9396 100644 --- a/luci-app-netspeedtest/Makefile +++ b/luci-app-netspeedtest/Makefile @@ -9,10 +9,10 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-netspeedtest LUCI_TITLE:=LuCI Support for netspeedtest -LUCI_DEPENDS:=+python3 +iperf3 +homebox +netperf +LUCI_DEPENDS:=+python3 +iperf3-ssl +homebox LUCI_PKGARCH:=all -PKG_VERSION:=2.1.3 -PKG_RELEASE:=20230302 +PKG_VERSION:=2.1.5 +PKG_RELEASE:=2024027 PKG_MAINTAINER:= include $(TOPDIR)/feeds/luci/luci.mk diff --git a/luci-app-netspeedtest/README.md b/luci-app-netspeedtest/README.md deleted file mode 100644 index 97cb65a5..00000000 --- a/luci-app-netspeedtest/README.md +++ /dev/null @@ -1,162 +0,0 @@ -## luci-app-netspeedtest - -### 访问数:[![](https://visitor-badge.glitch.me/badge?page_id=sirpdboy-visitor-badge)] [![](https://img.shields.io/badge/TG群-点击加入-FFFFFF.svg)](https://t.me/joinchat/AAAAAEpRF88NfOK5vBXGBQ) - -![screenshots](https://raw.githubusercontent.com/sirpdboy/openwrt/master/doc/说明1.jpg) - -luci-app-netspeedtest 网络速度诊断测试(包括:内网网页版测速、内网iperf3吞吐测速、外网speedtest.net网速测试、特定服务器的端口延迟测速) - -[luci-app-netspeedtest 网络速度诊断测试](https://github.com/sirpdboy/netspeedtest) - -请 **认真阅读完毕** 本页面,本页面包含注意事项和如何使用。 - -## 写在前面 - - - 一直在找OPENWRT上测试速度的插件,苦寻不到,于是有了它! 此插件可进行内外和外网网络速度测试。 - - TG群友说插件2年没更新了,花了几天时间结合时下需要,将网络测试功能升级到2.0版本。 - - - -## [菜单向导](#luci-app-netspeedtest) - - [功能说明](#功能说明) - - [注意事项](#iperf3吞吐测试注意事项) - - [版本说明](#版本说明) - - [使用方法](#使用方法) - - [源码说明](#源码说明) - - [界面](#界面) - - [其它](#其它) - - [感谢](#感谢) - - [捐助](#捐助) - - - -## 功能说明 -- 内网网页版测速插件 :基于speedtest-web网页版,启用后再点start进行测速。网页版启动后程序会驻留内存不测速建议不启用服务。 -- 内网iperf3吞吐测试 ,服务端路由器如果没有安装请先安装此iperf3插件。 -- 外网测速使用speedtest.net测速内核,基于speedtest-cli,需要有python3才能执行。 -- 特定服务器的端口延迟测速,是测试指定服务器的端口的延迟情况。 - -## iperf3吞吐测试注意事项 -- 测速的终端使用机器必须和测速服务器在同一个局域网络中! -- 客户端使用步骤:启动测速服务器端-->下载测试客户端-->运行测速客户端-->输入服务端IP地址-->查看结果。 -- 客户端运行,国内端下载中有“iperf3测速客户端”,运行它输入服务器IP即可。 - 国外原版,需要手动进入 CMD命令模式,再输入命令:iperf3.exe -c 服务器IP -- 网络测速iperf3客户端下载地址:https://sipdboy.lanzoui.com/b01c3esih 密码:cpd6 -- 需要依赖: python3 iperf3 speedtest-web - -## 版本说明 - - -### 2023.3.2 网速测试V2.1.3: - - 修复测速Speedtest看不到测试报名问题。 - - 重新调试IPERF3测试页面代码,解决某些主题显示不优雅的问题。 - - 修复取消服务自动启用的问题 - -### 2023.1.15 网速测试V2.1: - - 内网测试速度WEB页采用homebox。 - - 修复WEB页内网测试自动启用问题。 - - 外网测速加入Netperf测试。 - - 外网测速Speedtest某些节点会禁止测速。要测速建议关了留国的插件。 - -### 2022.10.18 网速测试V2.0.3: - - 代码基本重写和优化。 - - Iperf3可实时体现服务状态。 - - 增加内网测试网页版。 - - 外网测速,加入更详细测试报告。 - -### 2021.3.2 网速测试V1.6: - - 升级宽带测试带2.13内核。 - - 解决1.806以上版本不能编译问题。 - -## 使用方法 - -将NetSpeedTest 主题添加至 LEDE/OpenWRT 源码的方法。 - -### 下载源码: - - # 下载源码 - - git clone https://github.com/sirpdboy/netspeedtest.git package/netspeedtest - make menuconfig - - ``` -### 配置菜单 - - ```Brach - make menuconfig - # 找到 LuCI -> Applications, 选择 luci-app-netspeedtest, 保存后退出。 - ``` - -### 编译 - - ```Brach - # 编译固件 - make package/netspeedtest/luci-app-netspeedtest/compile V=s - ``` - - -## 源码说明 - -- 源码来源和依赖: -- luci-app-netspeedtest:https://github.com/sirpdboy/netspeedtest -- speedtest-web:https://github.com/ZeaKyX/speedtest-web -- speedtest-cl:https://github.com/sivel/speedtest-cli - -- 你可以随意使用其中的源码,但请注明出处。 - -![screenshots](https://raw.githubusercontent.com/sirpdboy/openwrt/master/doc/说明2.jpg) - -## 界面 - -![screenshots](https://raw.githubusercontent.com/sirpdboy/openwrt/master/doc/netspeedtest1.jpg) - -![screenshots](https://raw.githubusercontent.com/sirpdboy/openwrt/master/doc/netspeedtest2.jpg) - -![screenshots](https://raw.githubusercontent.com/sirpdboy/openwrt/master/doc/netspeedtest3.jpg) - -![screenshots](https://raw.githubusercontent.com/sirpdboy/openwrt/master/doc/netspeedtest4.jpg) - - - -## 使用与授权相关说明 - -- 本人开源的所有源码,任何引用需注明本处出处,如需修改二次发布必告之本人,未经许可不得做于任何商用用途。 - - -# My other project - -- 网络速度测试 :https://github.com/sirpdboy/NetSpeedTest - -- 定时设置插件 : https://github.com/sirpdboy/luci-app-autotimeset - -- 关机功能插件 : https://github.com/sirpdboy/luci-app-poweroffdevice - -- opentopd主题 : https://github.com/sirpdboy/luci-theme-opentopd - -- kucat 主题: https://github.com/sirpdboy/luci-theme-kucat - -- 家长控制: https://github.com/sirpdboy/luci-theme-parentcontrol - -- 系统高级设置 : https://github.com/sirpdboy/luci-app-advanced - -- ddns-go动态域名: https://github.com/sirpdboy/luci-app-ddns-go - -- 进阶设置(系统高级设置+主题设置kucat/agron/opentopd): https://github.com/sirpdboy/luci-app-advancedplus - -- 设置向导: https://github.com/sirpdboy/luci-app-wizard - -- 分区扩容: https://github.com/sirpdboy/luci-app-partexp - -- lukcy大吉: https://github.com/sirpdboy/luci-app-lukcy - -## 捐助 - -![screenshots](https://raw.githubusercontent.com/sirpdboy/openwrt/master/doc/说明3.jpg) - -| 图飞了😂 | 图飞了😂 | -| :-----------------: | :-------------: | -|![xm1](https://raw.githubusercontent.com/sirpdboy/openwrt/master/doc/支付宝.png) | ![xm1](https://raw.githubusercontent.com/sirpdboy/openwrt/master/doc/微信.png) | - - - 图飞了😂 - diff --git a/luci-app-netspeedtest/luasrc/controller/netspeedtest.lua b/luci-app-netspeedtest/luasrc/controller/netspeedtest.lua index b1dda250..0855e679 100644 --- a/luci-app-netspeedtest/luasrc/controller/netspeedtest.lua +++ b/luci-app-netspeedtest/luasrc/controller/netspeedtest.lua @@ -4,14 +4,16 @@ module("luci.controller.netspeedtest", package.seeall) local fs=require"nixio.fs" local sys = require "luci.sys" function index() - entry({"admin","network","netspeedtest"},alias("admin", "network", "netspeedtest", "homebox"),_("Net Speedtest"), 90).dependent = true + + if not nixio.fs.access("/etc/config/netspeedtest") then return end + local e = entry({"admin","network","netspeedtest"},alias("admin", "network", "netspeedtest", "homebox"),_("Net Speedtest"), 90) + e.dependent=false + e.acl_depends = { "luci-app-netspeedtest" } entry({"admin","network","netspeedtest","homebox"},cbi("netspeedtest/homebox"),_("Lan homebox Web"),20).leaf = true entry({"admin","network","netspeedtest","speedtestiperf3"},cbi("netspeedtest/speedtestiperf3", {hideapplybtn=true, hidesavebtn=true, hideresetbtn=true}),_("Lan Speedtest Iperf3"),30).leaf = true entry({"admin","network","netspeedtest","speedtestwan"},cbi("netspeedtest/speedtestwan", {hideapplybtn=true, hidesavebtn=true, hideresetbtn=true}),_("Wan Speedtest"), 40).leaf = true - entry({"admin","network","netspeedtest","netperftestwan"},cbi("netspeedtest/netperftestwan", {hideapplybtn=true, hidesavebtn=true, hideresetbtn=true}),_("Netperf Speedtest"), 40).leaf = true entry({"admin", "network", "netspeedtest", "checknet"}, call("check_net")) - entry({"admin", "network", "homebox_status"}, call("homebox_status")) entry({"admin", "network", "iperf3_status"}, call("iperf3_status")) entry({"admin", "network","test_iperf0"}, post("test_iperf0"), nil).leaf = true @@ -25,15 +27,6 @@ function index() end -function homebox_status() - local e = { - run = (sys.call("pidof homebox >/dev/null") == 0), - port = 3300 - } - luci.http.prepare_content("application/json") - luci.http.write_json(e) -end - function iperf3_status() local e={} e.run=sys.call("pgrep iperf3 >/dev/null")==0 diff --git a/luci-app-netspeedtest/luasrc/model/cbi/netspeedtest/homebox.lua b/luci-app-netspeedtest/luasrc/model/cbi/netspeedtest/homebox.lua index e0e8badd..a46985c7 100644 --- a/luci-app-netspeedtest/luasrc/model/cbi/netspeedtest/homebox.lua +++ b/luci-app-netspeedtest/luasrc/model/cbi/netspeedtest/homebox.lua @@ -1,14 +1,10 @@ -- Copyright (C) 2020-2022 sirpdboy https://github.com/sirpdboy/netspeedtest - local m, s ,o - m = Map("netspeedtest", "" .. translate("Net Speedtest") .."",translate( "Network speed diagnosis test (including intranet and extranet)
For specific usage, see:") ..translate("GitHub @sirpdboy/netspeedtest") ) --- m:section(SimpleSection).template = "netspeedtest/homebox_status" s = m:section(TypedSection, "homebox", translate('Lan homebox Web')) -s.addremove=false -s.anonymous=true +s.anonymous = true o=s:option(Flag,"enabled",translate("Enable")) o.default=0 @@ -19,7 +15,6 @@ o.template ='netspeedtest/homebox' m.apply_on_parse = true m.on_after_apply = function(self,map) - io.popen("/etc/init.d/netspeedtest start") + io.popen("/etc/init.d/netspeedtest restart") end - return m diff --git a/luci-app-netspeedtest/luasrc/model/cbi/netspeedtest/netperftestwan.lua b/luci-app-netspeedtest/luasrc/model/cbi/netspeedtest/netperftestwan.lua deleted file mode 100644 index e080f10e..00000000 --- a/luci-app-netspeedtest/luasrc/model/cbi/netspeedtest/netperftestwan.lua +++ /dev/null @@ -1,18 +0,0 @@ --- Copyright (C) 2020-2022 sirpdboy https://github.com/sirpdboy/netspeedtest -require("luci.util") -local o,t,e - -o = Map("netspeedtest", "" .. translate("Net Speedtest") .."",translate( "Network speed diagnosis test (including intranet and extranet)
For specific usage, see:") ..translate("GitHub @sirpdboy/netspeedtest") ) - -t=o:section(TypedSection,"wanspeedtest",translate("Netperf Speedtest")) -t.anonymous=true - -e = t:option(DummyValue, '', '') -e.rawhtml = true -e.template ='netspeedtest/netperftestwan' - -e =t:option(DummyValue, '', '') -e.rawhtml = true -e.template = 'netspeedtest/log' - -return o diff --git a/luci-app-netspeedtest/luasrc/view/netspeedtest/homebox.htm b/luci-app-netspeedtest/luasrc/view/netspeedtest/homebox.htm index 89275a23..3783b31c 100644 --- a/luci-app-netspeedtest/luasrc/view/netspeedtest/homebox.htm +++ b/luci-app-netspeedtest/luasrc/view/netspeedtest/homebox.htm @@ -3,11 +3,15 @@ https://github.com/sirpdboy/netspeedtest Licensed to the public under the Apache License 2.0. -%> - +<% + local running = luci.sys.exec("pidof homebox") +%> <%+cbi/valueheader%> +
- -
+<% if tonumber(running) ~= nil then %> + + +<% else %> + +
+ +

<%:The homebox service is not running.%>

+

<%:Please enable the Homebox service%>

+
+<% end %> + <%+cbi/valuefooter%> diff --git a/luci-app-netspeedtest/luasrc/view/netspeedtest/homebox_status.htm b/luci-app-netspeedtest/luasrc/view/netspeedtest/homebox_status.htm deleted file mode 100644 index 35a19a42..00000000 --- a/luci-app-netspeedtest/luasrc/view/netspeedtest/homebox_status.htm +++ /dev/null @@ -1,28 +0,0 @@ - - - - -
- <%:homebox Status%> -

- <%:Collecting data...%> -

-
\ No newline at end of file diff --git a/luci-app-netspeedtest/luasrc/view/netspeedtest/netperftestwan.htm b/luci-app-netspeedtest/luasrc/view/netspeedtest/netperftestwan.htm deleted file mode 100644 index a02c31a5..00000000 --- a/luci-app-netspeedtest/luasrc/view/netspeedtest/netperftestwan.htm +++ /dev/null @@ -1,54 +0,0 @@ -<%# - Copyright 2020-2022 sirpdboy Wich - https://github.com/sirpdboy/netspeedtest - Licensed to the public under the Apache License 2.0. --%> -<% -local fs = require "nixio.fs" -local has_ping6 = fs.access("/bin/ping6") or fs.access("/usr/bin/ping6") -%> -<%+cbi/valueheader%> - - - - - - - -<%+cbi/valuefooter%> diff --git a/luci-app-netspeedtest/po/zh-cn/netspeedtest.po b/luci-app-netspeedtest/po/zh-cn/netspeedtest.po index b33e6015..af36cac5 100644 --- a/luci-app-netspeedtest/po/zh-cn/netspeedtest.po +++ b/luci-app-netspeedtest/po/zh-cn/netspeedtest.po @@ -43,6 +43,9 @@ msgstr "homebox网页测速服务已启动" msgid "The homebox service is not running." msgstr "homebox网页测速服务未启动" +msgid "Please enable the Homebox service" +msgstr "请将homebox服务启用" + msgid "homebox Status" msgstr "homebox网页测速服务状态" diff --git a/luci-app-netspeedtest/po/zh_Hans b/luci-app-netspeedtest/po/zh_Hans deleted file mode 100644 index 41451e4a..00000000 --- a/luci-app-netspeedtest/po/zh_Hans +++ /dev/null @@ -1 +0,0 @@ -zh-cn \ No newline at end of file diff --git a/luci-app-netspeedtest/po/zh_Hans/netspeedtest.po b/luci-app-netspeedtest/po/zh_Hans/netspeedtest.po new file mode 100644 index 00000000..af36cac5 --- /dev/null +++ b/luci-app-netspeedtest/po/zh_Hans/netspeedtest.po @@ -0,0 +1,109 @@ +# +# Copyright (C) 2020-2022 sirpdboy herboy2008@gmail.com https://github.com/sirpdboy/netspeedtest +# This is free software, licensed under the GNU General Public License v3. +# +msgid "" +msgstr "" +"Project-Id-Version: LuCi Chinese Translation\n" +"Report-Msgid-Bugs-To: \n" +"Language: zh_CN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Pootle 2.0.6\n" + +msgid "Net Speedtest" +msgstr "网速测试" + +msgid "Network speed diagnosis test (including intranet and extranet)
For specific usage, see:" +msgstr "网络速度诊断测试(包括内网、外网、特定端口服务器测速)
使用说明见:" + +msgid "Lan Speedtest Iperf3" +msgstr "内网iperf3吞吐测速" + +msgid "Lan homebox Web" +msgstr "内网测速网页版" + +msgid "Running state" +msgstr "运行状态" + +msgid "The Iperf3 service is running." +msgstr "iperf3服务已启动" + +msgid "The Iperf3 service is not running." +msgstr "iperf3服务未启动" + +msgid "Iperf3 Status" +msgstr "iperf3服务状态" + +msgid "The homebox service is running." +msgstr "homebox网页测速服务已启动" + +msgid "The homebox service is not running." +msgstr "homebox网页测速服务未启动" + +msgid "Please enable the Homebox service" +msgstr "请将homebox服务启用" + +msgid "homebox Status" +msgstr "homebox网页测速服务状态" + +msgid "
For specific usage, see:" +msgstr "
具体使用方法参见:" + +msgid "iperfstart" +msgstr "iperf服务启动" + +msgid "iperfstop" +msgstr "iperf服务停止" + +msgid "Select function" +msgstr "选择功能" + +msgid "Perform operation" +msgstr "执行操作" + + +msgid "iperf3 instructions" +msgstr "iperf3使用说明" + +msgid "Test speed service started" +msgstr "测试速度服务已经启动" + +msgid "The speed measurement terminal must be in the same LAN as the router that starts the speed measurement" +msgstr "测速终端机必须与启动测速的路由器在同一局域网内" + +msgid "Operation steps: start router speed measurement service download test client run speed measurement client input IP address of router speed measurement service" +msgstr "使用步骤:A.启动路由器测速服务 B.下载测试客户端 C.运行测速客户端 D.输入路由器测速服务IP地址。 " + +msgid "Domestic download password:" +msgstr "国内下密码:" + +msgid "Iperf3 speed measurement software download" +msgstr "iperf3测速软件下载" + +msgid "Wan Speedtest" +msgstr "Speedtest宽带测速" + +msgid "Perform Wan Speedtest" +msgstr "执行Speedtest宽带测速" + +msgid "Netperf Speedtest" +msgstr "Netperf宽带测速" + +msgid "Perform Netperf Speedtest" +msgstr "执行Netperf宽带测速" + +msgid "Operation execution complete" +msgstr "操作执行完毕" + +msgid "Network speed test, please wait..." +msgstr "网速测试中,请稍侯..." + +msgid "Download from foreign official websites" +msgstr "国外官网" + +msgid "Server Port Speedtest" +msgstr "端口延迟测试" + diff --git a/luci-app-netspeedtest/root/etc/init.d/netspeedtest b/luci-app-netspeedtest/root/etc/init.d/netspeedtest index 67d5b2bd..77bf8e2e 100644 --- a/luci-app-netspeedtest/root/etc/init.d/netspeedtest +++ b/luci-app-netspeedtest/root/etc/init.d/netspeedtest @@ -64,10 +64,12 @@ homebox_prepare() { } start_service() { - homebox_prepare config_load netspeedtest config_foreach get_config homebox - [ "x$enabled" != "x1" ] && exit 1 + [ "x$enabled" != "x1" ] && { + homebox_prepare + exit + } procd_open_instance procd_set_param command $PROG [ "x$logger" == x1 ] && procd_set_param stderr 1 diff --git a/luci-app-netspeedtest/root/etc/uci-defaults/40_luci-app-netspeedtest b/luci-app-netspeedtest/root/etc/uci-defaults/40_luci-app-netspeedtest deleted file mode 100644 index ba120ceb..00000000 --- a/luci-app-netspeedtest/root/etc/uci-defaults/40_luci-app-netspeedtest +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -chmod +x /etc/init.d/netspeedtest /usr/bin/*test >/dev/null 2>&1 - -rm -rf /tmp/luci-modulecache /tmp/luci-indexcache* -exit 0 diff --git a/luci-app-netspeedtest/root/usr/bin/netperftest b/luci-app-netspeedtest/root/usr/bin/netperftest deleted file mode 100644 index a50f452b..00000000 --- a/luci-app-netspeedtest/root/usr/bin/netperftest +++ /dev/null @@ -1,167 +0,0 @@ -#! /bin/sh - -# Netperfrunner.sh - a shell script that runs several netperf commands simultaneously. -# This mimics the stress test of Flent (www.flent.org - formerly, "netperf-wrapper") -# from Toke but doesn't have the nice GUI result. -# This can live in /usr/lib/OpenWrtScripts -# -# When you start this script, it concurrently uploads and downloads multiple -# streams (files) to a server on the Internet. This places a heavy load -# on the bottleneck link of your network (probably your connection to the -# Internet). It also starts a ping to a well-connected host. It displays: -# -# a) total bandwidth available -# b) the distribution of ping latency - -# Usage: sh netperfrunner.sh [ -4 -6 ] [ -H netperf-server ] [ -t duration ] [ -t host-to-ping ] [ -n simultaneous-streams ] - -# Options: If options are present: -# -# -H | --host: DNS or Address of a netperf server (default - netperf.bufferbloat.net) -# Alternate servers are netperf-east (east coast US), netperf-west (California), -# and netperf-eu (Denmark) -# -4 | -6: IPv4 or IPv6 -# -t | --time: Duration for how long each direction's test should run - (default - 60 seconds) -# -p | --ping: Host to ping to measure latency (default - gstatic.com) -# -n | --number: Number of simultaneous sessions (default - 5 sessions) - -# Copyright (c) 2014-2022 - Rich Brown rich.brown@blueberryhillsoftware.com -# GPLv2 - - # Process the ping times from the passed-in file, and summarize the results - # grep to keep lines that have "time=", then sed to isolate the time stamps, and sort them - # Use awk to build an array of those values, and print first & last (which are min, max) - # and compute average. - # If the number of samples is >= 10, also compute median, and 10th and 90th percentile readings - - # Display the values as: - # Latency: (in msec, 11 pings, 8.33% packet loss) - # Min: 16.556 - # 10pct: 16.561 - # Median: 22.370 - # Avg: 21.203 - # 90pct: 23.202 - # Max: 23.394 - -# ------- Start of the main routine -------- - -# Usage: sh betterspeedtest.sh [ -H netperf-server ] [ -t duration ] [ -p host-to-ping ] - -# “H” and “host” DNS or IP address of the netperf server host (default: netperf.bufferbloat.net) -# “t” and “time” Time to run the test in each direction (default: 60 seconds) -# “p” and “ping” Host to ping for latency measurements (default: gstatic.com) -# "n" and "number" Number of simultaneous upload or download sessions (default: 4 sessions; -# 4 sessions chosen to match default of RRUL test) - -# set an initial values for defaults -TESTHOST="netperf.bufferbloat.net" -TESTDUR="60" - -PING4=ping -command -v ping4 > /dev/null 2>&1 && PING4=ping4 -PING6=ping6 - -PINGHOST="netperf.bufferbloat.net" -MAXSESSIONS=4 -TESTPROTO=-4 - -# Create temp files for netperf up/download results -ULFILE=`mktemp /tmp/netperfUL.XXXXXX` || exit 1 -DLFILE=`mktemp /tmp/netperfDL.XXXXXX` || exit 1 -PINGFILE=`mktemp /tmp/measurepings.XXXXXX` || exit 1 -# echo $ULFILE $DLFILE $PINGFILE - -# read the options - -# extract options and their arguments into variables. -while [ $# -gt 0 ] -do - case "$1" in - -4|-6) TESTPROTO=$1; shift 1 ;; - -H|--host) - case "$2" in - "") echo "Missing hostname" ; exit 1 ;; - *) TESTHOST=$2 ; shift 2 ;; - esac ;; - -t|--time) - case "$2" in - "") echo "Missing duration" ; exit 1 ;; - *) TESTDUR=$2 ; shift 2 ;; - esac ;; - -p|--ping) - case "$2" in - "") echo "Missing ping host" ; exit 1 ;; - *) PINGHOST=$2 ; shift 2 ;; - esac ;; - -n|--number) - case "$2" in - "") echo "Missing number of simultaneous sessions" ; exit 1 ;; - *) MAXSESSIONS=$2 ; shift 2 ;; - esac ;; - --) shift ; break ;; - *) echo "Usage: sh Netperfrunner.sh [ -H netperf-server ] [ -t duration ] [ -p host-to-ping ] [ -n simultaneous-streams ]" ; exit 1 ;; - esac -done - -# Start main test - -if [ $TESTPROTO -eq "-4" ] -then - PROTO="ipv4" -else - PROTO="ipv6" -fi -DATE=`date "+%Y-%m-%d %H:%M:%S"` - - LOG=/var/log/netspeedtest.log - echo -ne "\n netperf测速" | tee -a $LOG - echo -ne "\n 测服信息:$TESTHOST 协议:($PROTO) 线程:$MAXSESSIONS " | tee -a $LOG -# Start Ping -if [ $TESTPROTO -eq "-4" ] -then - "${PING4}" $PINGHOST > $PINGFILE & -else - "${PING6}" $PINGHOST > $PINGFILE & -fi -ping_pid=$! -# echo "Ping PID: $ping_pid" - -# Start $MAXSESSIONS upload datastreams from netperf client to the netperf server -# netperf writes the sole output value (in Mbps) to stdout when completed -for i in $( seq $MAXSESSIONS ) -do - netperf $TESTPROTO -H $TESTHOST -t TCP_STREAM -l $TESTDUR -v 0 -P 0 >> $ULFILE & - # echo "Starting upload #$i $!" -done - -# Start $MAXSESSIONS download datastreams from netperf server to the client -for i in $( seq $MAXSESSIONS ) -do - netperf $TESTPROTO -H $TESTHOST -t TCP_MAERTS -l $TESTDUR -v 0 -P 0 >> $DLFILE & - # echo "Starting download #$i $!" -done - -# Wait until each of the background netperf processes completes -# echo "Process is $$" -# echo `pgrep -P $$ netperf ` - -for i in `pgrep -P $$ netperf` # get a list of PIDs for child processes named 'netperf' -do - # echo "Waiting for $i" - wait $i -done - -# Stop the pings after the netperf's are all done -kill -9 $ping_pid -wait $ping_pid 2>/dev/null - - echo -ne "\n 下行速率:" `awk '{s+=$1} END {print s}' $DLFILE` Mbps | tee -a $LOG - echo -ne " ---- 上行速率:" `awk '{s+=$1} END {print s}' $ULFILE` Mbps | tee -a $LOG - echo -ne "\n 测试时间: " | tee -a $LOG - echo $(date +%Y-%m-%d" "%H:%M:%S) | tee -a $LOG - echo -ne " ————————————————————————————\n" | tee -a $LOG - -# Clean up -rm $PINGFILE -rm $DLFILE -rm $ULFILE diff --git a/microsocks/Makefile b/microsocks/Makefile index ebd4b59f..9f3b13a9 100644 --- a/microsocks/Makefile +++ b/microsocks/Makefile @@ -5,12 +5,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=microsocks -PKG_VERSION:=1.0.3 +PKG_VERSION:=1.0.4 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/rofl0r/microsocks/tar.gz/v$(PKG_VERSION)? -PKG_HASH:=6801559b6f8e17240ed8eef17a36eea8643412b5a7476980fd4e24b02a021b82 +PKG_HASH:=130127a87f55870f18fbe47a64d9b9533020e2900802d36a0f6fd2b074313deb PKG_LICENSE:=MIT PKG_LICENSE_FILES:=COPYING