diff --git a/luci-app-systools/Makefile b/luci-app-systools/Makefile index 23dea2e15..24fc962a0 100644 --- a/luci-app-systools/Makefile +++ b/luci-app-systools/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk -PKG_VERSION:=1.0.6-20241113 +PKG_VERSION:=1.0.7-20241206 PKG_RELEASE:= LUCI_TITLE:=LuCI support for SysTools diff --git a/luci-app-systools/luasrc/controller/systools.lua b/luci-app-systools/luasrc/controller/systools.lua index d600593d4..f0c2b2e9b 100755 --- a/luci-app-systools/luasrc/controller/systools.lua +++ b/luci-app-systools/luasrc/controller/systools.lua @@ -87,8 +87,9 @@ function main_container(data, extra) required = true, title = "可执行操作", type = "string", - enum = {"turn_off_ipv6", "full_ipv6", "half_ipv6", "reset_rom_pkgs", "qb_reset_password", "disk_power_mode", "speedtest", "openssl-aes256gcm", "openssl-chacha20-poly1305", "istore-reinstall", "disable-wandrop"}, + enum = {"disable-planb", "turn_off_ipv6", "full_ipv6", "half_ipv6", "reset_rom_pkgs", "qb_reset_password", "disk_power_mode", "speedtest", "openssl-aes256gcm", "openssl-chacha20-poly1305", "istore-reinstall", "disable-wandrop"}, enumNames = { + lng.translate("Disable LAN port keepalive"), lng.translate("Turn off IPv6"), lng.translate("Full IPv6"), lng.translate("Half IPv6 (Only Router)"), diff --git a/luci-app-systools/po/zh-cn/systools.po b/luci-app-systools/po/zh-cn/systools.po index 50b24fa50..13042ef71 100644 --- a/luci-app-systools/po/zh-cn/systools.po +++ b/luci-app-systools/po/zh-cn/systools.po @@ -7,6 +7,9 @@ msgstr "执行" msgid "Some convenient tools which can fix some errors." msgstr "一些便利的工具集,方便修复一些问题。" +msgid "Disable LAN port keepalive" +msgstr "禁用 LAN 口保活" + msgid "Reset rom pkgs" msgstr "修复系统软件" diff --git a/luci-app-systools/root/usr/share/systools/disable-planb.run b/luci-app-systools/root/usr/share/systools/disable-planb.run new file mode 100755 index 000000000..6c166de30 --- /dev/null +++ b/luci-app-systools/root/usr/share/systools/disable-planb.run @@ -0,0 +1,11 @@ +#!/bin/sh + +if [ "x$(uci -q get quickstart.main.disable_dhns)" = x1 ]; then + echo "Already disabled!" +else + echo "Disabling..." + uci set quickstart.main.disable_dhns=1 + uci commit quickstart + /etc/init.d/quickstart restart + echo "Done" +fi