mirror of
				https://github.com/kenzok8/openwrt-packages.git
				synced 2025-10-30 07:50:37 +08:00 
			
		
		
		
	update 2025-06-01 14:25:38
This commit is contained in:
		| @ -7,8 +7,8 @@ | ||||
| include $(TOPDIR)/rules.mk | ||||
|  | ||||
| PKG_NAME:=luci-app-ddns-go | ||||
| PKG_VERSION:=1.5.3 | ||||
| PKG_RELEASE:=20250515 | ||||
| PKG_VERSION:=1.5.4 | ||||
| PKG_RELEASE:=20250601 | ||||
|  | ||||
| PKG_MAINTAINER:=sirpdboy  <herboy2008@gmail.com> | ||||
| PKG_CONFIG_DEPENDS:= | ||||
|  | ||||
| @ -1,32 +0,0 @@ | ||||
| #!/bin/sh | ||||
| # | ||||
| # Copyright (C) 2023-2025 sirpdboy herboy2008@gmail.com https://github.com/sirpdboy/luci-app-ddns-go | ||||
| #  | ||||
|  | ||||
| logfile="/var/log/ddns-go.log" | ||||
| lang=$(uci get luci.main.lang 2>/dev/null) | ||||
| if [ -z "$lang" ] || [[ "$lang" == "auto" ]]; then | ||||
| 	lang=$(echo "${LANG:-${LANGUAGE:-${LC_ALL:-${LC_MESSAGES:-zh_cn}}}}" | awk -F'[ .@]' '{print tolower($1)}' | sed 's/-/_/' 2>/dev/null) | ||||
| fi | ||||
|  | ||||
| translate() { | ||||
| 	# 处理特殊字符 | ||||
| 	local lua_script=$(cat <<LUA | ||||
| 	require "luci.i18n".setlanguage("$lang") | ||||
| 	print(require "luci.i18n".translate([==[$1]==])) | ||||
| LUA | ||||
| 	) | ||||
|  | ||||
| 	lua -e "$lua_script" | ||||
| } | ||||
|  | ||||
| if [ "$1" == "clear_log" ]; then | ||||
| 	# 清空日志 | ||||
| 	>"${logfile}" | ||||
|  | ||||
| elif [ "$1" == "child" ]; then | ||||
| 	shift | ||||
| 	command_name=$1 | ||||
| 	shift | ||||
| 	"$command_name" "$@" | ||||
| fi | ||||
		Reference in New Issue
	
	Block a user
	 actions-user
					actions-user