-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.强化参数配置文件数据读取纠错机制。 2.更新运营商 IP 地址数据文件。
- Loading branch information
Showing
17 changed files
with
70 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/sh | ||
# install.sh v4.3.9 | ||
# install.sh v4.4.0 | ||
# By LZ 妙妙呜 ([email protected]) | ||
|
||
# LZ RULE script for Asuswrt-Merlin Router | ||
|
@@ -11,7 +11,7 @@ | |
|
||
#BEIGIN | ||
|
||
LZ_VERSION=v4.3.9 | ||
LZ_VERSION=v4.4.0 | ||
TIMEOUT=10 | ||
CURRENT_PATH="${0%/*}" | ||
[ "${CURRENT_PATH:0:1}" != '/' ] && CURRENT_PATH="$( pwd )${CURRENT_PATH#*.}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/sh | ||
# lz_rule_config.sh v4.3.9 | ||
# lz_rule_config.sh v4.4.0 | ||
# By LZ 妙妙呜 ([email protected]) | ||
|
||
# 本软件采用CIDR(无类别域间路由,Classless Inter-Domain Routing)技术,是一个在Internet上创建附加地 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/sh | ||
# lz_clear_custom_scripts_data.sh v4.3.9 | ||
# lz_clear_custom_scripts_data.sh v4.4.0 | ||
# By LZ 妙妙呜 ([email protected]) | ||
|
||
## 清除用户自定义脚本数据 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/sh | ||
# lz_define_global_variables.sh v4.3.9 | ||
# lz_define_global_variables.sh v4.4.0 | ||
# By LZ 妙妙呜 ([email protected]) | ||
# QnkgTFog5aaZ5aaZ5ZGc77yI6Juk6J+G5aKp5YS/77yJ(首次运行标识,切勿修改) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/sh | ||
# lz_initialize_config.sh v4.3.9 | ||
# lz_initialize_config.sh v4.4.0 | ||
# By LZ 妙妙呜 ([email protected]) | ||
|
||
## 初始化脚本配置 | ||
|
@@ -1618,13 +1618,13 @@ lz_get_config_data() { | |
&& match(value, /^[\"][^\"]*[\"]$/) > 0) | ||
value="\\\""value"\\\""; | ||
if (invalid == 1 || invalid == 2) | ||
system("sed -i \"s\|\^\[ \\t\]\*"$1"=\.\*\$\|"$1"="value"\|\" \""fname"\" \> \/dev\/null 2\>\&1"); | ||
system("sed -i \"s\|\^\[\[\:space\:\]\]\*"$1"=\.\*\$\|"$1"="value"\|\" \""fname"\" \> \/dev\/null 2\>\&1"); | ||
else if (invalid == 3) | ||
system("sed -i \"s\|\^\[ \\t\]\*"$1"=\.\*\$\|"$1"="value" ## 间隔天数(1~31);\\\"ruid_interval_day=5\\\"表示每隔5天。\|\" \""fname"\" \> \/dev\/null 2\>\&1"); | ||
system("sed -i \"s\|\^\[\[\:space\:\]\]\*"$1"=\.\*\$\|"$1"="value" ## 间隔天数(1~31);\\\"ruid_interval_day=5\\\"表示每隔5天。\|\" \""fname"\" \> \/dev\/null 2\>\&1"); | ||
else if (invalid == 4) | ||
system("sed -i \"s\|\^\[ \\t\]\*"$1"=\.\*\$\|"$1"="value" ## 时间小时数(0~23,\\\*表示由系统指定);\\\"ruid_timer_hour=3\\\"表示更新当天的凌晨3点。\|\" \""fname"\" \> \/dev\/null 2\>\&1"); | ||
system("sed -i \"s\|\^\[\[\:space\:\]\]\*"$1"=\.\*\$\|"$1"="value" ## 时间小时数(0~23,\\\*表示由系统指定);\\\"ruid_timer_hour=3\\\"表示更新当天的凌晨3点。\|\" \""fname"\" \> \/dev\/null 2\>\&1"); | ||
else if (invalid == 5) | ||
system("sed -i \"s\|\^\[ \\t\]\*"$1"=\.\*\$\|"$1"="value" ## 时间分钟数(0~59,\\\*表示由系统指定);\\\"ruid_timer_min=18\\\"表示更新当天的凌晨3点18分。\|\" \""fname"\" \> \/dev\/null 2\>\&1"); | ||
system("sed -i \"s\|\^\[\[\:space\:\]\]\*"$1"=\.\*\$\|"$1"="value" ## 时间分钟数(0~59,\\\*表示由系统指定);\\\"ruid_timer_min=18\\\"表示更新当天的凌晨3点18分。\|\" \""fname"\" \> \/dev\/null 2\>\&1"); | ||
print "local_"$1"="value; | ||
count++; | ||
} END{ | ||
|
@@ -1643,7 +1643,7 @@ lz_get_config_data() { | |
gsub(/[ \t#].*$/, "", value); | ||
if (value !~ /^[0-9]$/) { | ||
value="5"; | ||
system("sed -i \"s\|\^\[ \\t\]\*"$1"=\.\*\$\|"$1"="value"\|\" \""fname"\" \> \/dev\/null 2\>\&1"); | ||
system("sed -i \"s\|\^\[\[\:space\:\]\]\*"$1"=\.\*\$\|"$1"="value"\|\" \""fname"\" \> \/dev\/null 2\>\&1"); | ||
} | ||
print "local_"$1"="value; | ||
exit; | ||
|
@@ -1766,7 +1766,6 @@ EOF | |
|
||
## 恢复备份配置参数函数 | ||
## 输入项: | ||
## $1--变量前缀 | ||
## 全局常量及变量 | ||
## 返回值:无 | ||
lz_restore_box_data() { | ||
|
@@ -2182,13 +2181,15 @@ lz_get_box_data() { | |
&& match(value, /^[\"][^\"]*[\"]$/) > 0) | ||
value="\\\""value"\\\""; | ||
if (invalid != 0) | ||
system("sed -i \"s\|\^\[ \\t\]\*lz_config_"key"=\.\*\$\|lz_config_"key"="value"\|\" \""fname"\" \> \/dev\/null 2\>\&1"); | ||
system("sed -i \"s\|\^\[\[\:space\:\]\]\*lz_config_"key"=\.\*\$\|lz_config_"key"="value"\|\" \""fname"\" \> \/dev\/null 2\>\&1"); | ||
print "local_ini_"key"="value; | ||
if (invalid != 6) count++; | ||
} END{ | ||
if (count != length(i)-1) | ||
print "lz_restore_box_data"; | ||
print "local param_total="length(i)-1 | ||
}' "${PATH_CONFIGS}/lz_rule_config.box" )" | ||
[ "${param_total}" != "$( wc -l "${PATH_CONFIGS}/lz_rule_config.box" 2> /dev/null | awk '{print $1}' )" ] && lz_restore_box_data | ||
if [ "${local_ini_route_cache}" != "0" ] && [ "${local_ini_drop_sys_caches}" != "0" ] && [ "${local_ini_clear_route_cache_time_interval}" != "0" ]; then | ||
sed -i "s|^[[:space:]]*lz_config_clear_route_cache_time_interval=${local_ini_clear_route_cache_time_interval}|lz_config_clear_route_cache_time_interval=0|" "${PATH_CONFIGS}/lz_rule_config.box" > /dev/null 2>&1 | ||
local_ini_clear_route_cache_time_interval="0" | ||
|
@@ -2469,8 +2470,8 @@ lz_optimize_to_iptv() { | |
} | ||
if (flag == 0) next; | ||
if (update != 0) { | ||
system("sed -i \"s\|\^\[ \\t\]\*lz_config_"key"=\.\*\$\|lz_config_"key"="value"\|\" \""fname"\" \> \/dev\/null 2\>\&1"); | ||
system("sed -i \"s\|\^\[ \\t\]\*"key"=\.\*\$\|"key"="value"\|\" \""fnm"\" \> \/dev\/null 2\>\&1"); | ||
system("sed -i \"s\|\^\[\[\:space\:\]\]\*lz_config_"key"=\.\*\$\|lz_config_"key"="value"\|\" \""fname"\" \> \/dev\/null 2\>\&1"); | ||
system("sed -i \"s\|\^\[\[\:space\:\]\]\*"key"=\.\*\$\|"key"="value"\|\" \""fnm"\" \> \/dev\/null 2\>\&1"); | ||
} | ||
print "local_ini_"key"="value; | ||
print "local_"key"="value; | ||
|
@@ -2492,8 +2493,8 @@ lz_optimize_to_hd() { | |
gsub(/[ \t#].*$/, "", value); | ||
if (value != 1) { | ||
value=1; | ||
system("sed -i \"s\|\^\[ \\t\]\*lz_config_"key"=\.\*\$\|lz_config_"key"="value"\|\" \""fname"\" \> \/dev\/null 2\>\&1"); | ||
system("sed -i \"s\|\^\[ \\t\]\*"key"=\.\*\$\|"key"="value"\|\" \""fnm"\" \> \/dev\/null 2\>\&1"); | ||
system("sed -i \"s\|\^\[\[\:space\:\]\]\*lz_config_"key"=\.\*\$\|lz_config_"key"="value"\|\" \""fname"\" \> \/dev\/null 2\>\&1"); | ||
system("sed -i \"s\|\^\[\[\:space\:\]\]\*"key"=\.\*\$\|"key"="value"\|\" \""fnm"\" \> \/dev\/null 2\>\&1"); | ||
} | ||
print "local_ini_"key"="value; | ||
print "local_"key"="value; | ||
|
@@ -2515,8 +2516,8 @@ lz_restore_to_rn() { | |
gsub(/[ \t#].*$/, "", value); | ||
if (value != 0) { | ||
value=0; | ||
system("sed -i \"s\|\^\[ \\t\]\*lz_config_"key"=\.\*\$\|lz_config_"key"="value"\|\" \""fname"\" \> \/dev\/null 2\>\&1"); | ||
system("sed -i \"s\|\^\[ \\t\]\*"key"=\.\*\$\|"key"="value"\|\" \""fnm"\" \> \/dev\/null 2\>\&1"); | ||
system("sed -i \"s\|\^\[\[\:space\:\]\]\*lz_config_"key"=\.\*\$\|lz_config_"key"="value"\|\" \""fname"\" \> \/dev\/null 2\>\&1"); | ||
system("sed -i \"s\|\^\[\[\:space\:\]\]\*"key"=\.\*\$\|"key"="value"\|\" \""fnm"\" \> \/dev\/null 2\>\&1"); | ||
} | ||
print "local_ini_"key"="value; | ||
print "local_"key"="value; | ||
|
@@ -2565,16 +2566,16 @@ lz_get_web_data_to_config() { | |
value="\*"; | ||
if (prefix == "") { | ||
if (key == "ruid_interval_day") | ||
system("sed -i \"s\|\^\[ \\t\]\*"key"=\.\*\$\|"key"="value" ## 间隔天数(1~31);\\\"ruid_interval_day=5\\\"表示每隔5天。\|\" \""fname"\" \> \/dev\/null 2\>\&1"); | ||
system("sed -i \"s\|\^\[\[\:space\:\]\]\*"key"=\.\*\$\|"key"="value" ## 间隔天数(1~31);\\\"ruid_interval_day=5\\\"表示每隔5天。\|\" \""fname"\" \> \/dev\/null 2\>\&1"); | ||
else if (key == "ruid_timer_hour") | ||
system("sed -i \"s\|\^\[ \\t\]\*"key"=\.\*\$\|"key"="value" ## 时间小时数(0~23,\\\*表示由系统指定);\\\"ruid_timer_hour=3\\\"表示更新当天的凌晨3点。\|\" \""fname"\" \> \/dev\/null 2\>\&1"); | ||
system("sed -i \"s\|\^\[\[\:space\:\]\]\*"key"=\.\*\$\|"key"="value" ## 时间小时数(0~23,\\\*表示由系统指定);\\\"ruid_timer_hour=3\\\"表示更新当天的凌晨3点。\|\" \""fname"\" \> \/dev\/null 2\>\&1"); | ||
else if (key == "ruid_timer_min") | ||
system("sed -i \"s\|\^\[ \\t\]\*"key"=\.\*\$\|"key"="value" ## 时间分钟数(0~59,\\\*表示由系统指定);\\\"ruid_timer_min=18\\\"表示更新当天的凌晨3点18分。\|\" \""fname"\" \> \/dev\/null 2\>\&1"); | ||
system("sed -i \"s\|\^\[\[\:space\:\]\]\*"key"=\.\*\$\|"key"="value" ## 时间分钟数(0~59,\\\*表示由系统指定);\\\"ruid_timer_min=18\\\"表示更新当天的凌晨3点18分。\|\" \""fname"\" \> \/dev\/null 2\>\&1"); | ||
else | ||
system("sed -i \"s\|\^\[ \\t\]\*"key"=\.\*\$\|"key"="value"\|\" \""fname"\" \> \/dev\/null 2\>\&1"); | ||
system("sed -i \"s\|\^\[\[\:space\:\]\]\*"key"=\.\*\$\|"key"="value"\|\" \""fname"\" \> \/dev\/null 2\>\&1"); | ||
} else { | ||
key=prefix""key; | ||
system("sed -i \"s\|\^\[ \\t\]\*"key"=\.\*\$\|"key"="value"\|\" \""fname"\" \> \/dev\/null 2\>\&1"); | ||
system("sed -i \"s\|\^\[\[\:space\:\]\]\*"key"=\.\*\$\|"key"="value"\|\" \""fname"\" \> \/dev\/null 2\>\&1"); | ||
} | ||
}' "${SETTINGSFILE}" | ||
sed -i '/^[[:space:]]*lz_rule_/d' "${SETTINGSFILE}" | ||
|
@@ -2594,18 +2595,27 @@ if [ "${local_reinstall}" -gt "0" ] && [ "${PATH_LZ}" != "/jffs/scripts/lz" ]; t | |
[ -f "${PATH_CONFIGS}/lz_rule_config.sh" ] && sed -i "s:/jffs/scripts/lz/:${PATH_LZ}/:g" "${PATH_CONFIGS}/lz_rule_config.sh" > /dev/null 2>&1 | ||
fi | ||
|
||
if [ -f "${PATH_CONFIGS}/lz_rule_config.box" ]; then | ||
## 清除lz_rule_config.box内参数赋值等式中等号两端的不合法空格 | ||
sed -i -e 's/^[[:space:]][[:space:]]*//' \ | ||
-e 's/^\([a-zA-Z0-9_-][a-zA-Z0-9_-]*\)[[:space:]][[:space:]]*\([=][^=].*\)$/\1\2/' \ | ||
-e 's/^\([a-zA-Z0-9_-][a-zA-Z0-9_-]*[=]\)[[:space:]][[:space:]]*\([^#[:space:]].*\)$/\1\2/' \ | ||
-e 's/^[[:space:]][[:space:]]*//' \ | ||
-e '/^[[:space:]]*#/d' \ | ||
-e '/^[[:space:]]*$/d' "${PATH_CONFIGS}/lz_rule_config.box" | ||
## 删除lz_rule_config.box中可能出现的重复参数项 | ||
awk -v x="0" '$1 ~ /^[a-zA-Z0-9_-][a-zA-Z0-9_-]*[=]/ && i[substr($1, 1, index($1, "="))]++ \ | ||
{x++; printf " -e '\''%ss\/\^\.\*\$\/#\&\/g'\''", NR} END{if (x != "0") printf "\n"}' "${PATH_CONFIGS}/lz_rule_config.box" \ | ||
| awk 'NF != "0" {system("sed -i"$0" -e '\''\/\^#\/d'\'' ""'"${PATH_CONFIGS}/lz_rule_config.box"'")}' | ||
fi | ||
|
||
## 若lz_rule_config.sh不存在,则重新生成一个 | ||
## 恢复缺省配置数据文件 | ||
## 输入项: | ||
## 全局常量 | ||
## 返回值:无 | ||
if [ ! -f "${PATH_CONFIGS}/lz_rule_config.sh" ]; then | ||
if [ -f "${PATH_CONFIGS}/lz_rule_config.box" ]; then | ||
## 删除lz_rule_config.box中可能出现的重复参数项 | ||
awk -v x="0" '$1 ~ /^[a-zA-Z0-9_-][a-zA-Z0-9_-]*[=]/ && i[substr($1, 1, index($1, "="))]++ \ | ||
{x++; printf " -e '\''%ss\/\^\.\*\$\/#\&\/g'\''", NR} END{if (x != "0") printf "\n"}' "${PATH_CONFIGS}/lz_rule_config.box" \ | ||
| awk 'NF != "0" {system("sed -i"$0" -e '\''\/\^#\/d'\'' ""'"${PATH_CONFIGS}/lz_rule_config.box"'")}' | ||
else | ||
if [ ! -f "${PATH_CONFIGS}/lz_rule_config.box" ]; then | ||
## 创建新的备份文件 | ||
## 备份配置参数函数 | ||
## 输入项: | ||
|
@@ -2627,6 +2637,17 @@ if [ ! -f "${PATH_CONFIGS}/lz_rule_config.sh" ]; then | |
## 返回值:无 | ||
lz_restore_cfg_file | ||
local_reinstall="$(( local_reinstall + 1 ))" | ||
else | ||
## 清除lz_rule_config.sh内参数赋值等式中等号两端的不合法空格 | ||
sed -i -e 's/^[[:space:]][[:space:]]*//' \ | ||
-e 's/^\([a-zA-Z0-9_-][a-zA-Z0-9_-]*\)[[:space:]][[:space:]]*\([=][^=].*\)$/\1\2/' \ | ||
-e 's/^\([a-zA-Z0-9_-][a-zA-Z0-9_-]*[=]\)[[:space:]][[:space:]]*\([^#[:space:]].*\)$/\1\2/' \ | ||
-e 's/^[[:space:]][[:space:]]*//' "${PATH_CONFIGS}/lz_rule_config.sh" | ||
|
||
## 注释lz_rule_config.sh中的重复参数项 | ||
awk -v x="0" '$1 ~ /^[a-zA-Z0-9_-][a-zA-Z0-9_-]*[=]/ && i[substr($1, 1, index($1, "="))]++ \ | ||
{x++; printf " -e '\''%ss\/\^\.\*\$\/###\&\/g'\''", NR} END{if (x != "0") printf "\n"}' "${PATH_CONFIGS}/lz_rule_config.sh" \ | ||
| awk 'NF != "0" {system("sed -i"$0" ""'"${PATH_CONFIGS}/lz_rule_config.sh"'")}' | ||
fi | ||
|
||
if [ "${1}" = "default" ]; then | ||
|
@@ -2641,11 +2662,6 @@ if [ "${1}" = "default" ]; then | |
fi | ||
fi | ||
|
||
## 注释lz_rule_config.sh中的重复参数项 | ||
awk -v x="0" '$1 ~ /^[a-zA-Z0-9_-][a-zA-Z0-9_-]*[=]/ && i[substr($1, 1, index($1, "="))]++ \ | ||
{x++; printf " -e '\''%ss\/\^\.\*\$\/###\&\/g'\''", NR} END{if (x != "0") printf "\n"}' "${PATH_CONFIGS}/lz_rule_config.sh" \ | ||
| awk 'NF != "0" {system("sed -i"$0" ""'"${PATH_CONFIGS}/lz_rule_config.sh"'")}' | ||
|
||
## 接收WEB前端数据至配置文件 | ||
## 输入项: | ||
## $1--配置文件全路径名称 | ||
|
@@ -2669,11 +2685,6 @@ if [ ! -f "${PATH_CONFIGS}/lz_rule_config.box" ]; then | |
## 返回值:无 | ||
lz_backup_config | ||
else | ||
## 删除lz_rule_config.box中的重复参数项 | ||
awk -v x="0" '$1 ~ /^[a-zA-Z0-9_-][a-zA-Z0-9_-]*[=]/ && i[substr($1, 1, index($1, "="))]++ \ | ||
{x++; printf " -e '\''%ss\/\^\.\*\$\/#\&\/g'\''", NR} END{if (x != "0") printf "\n"}' "${PATH_CONFIGS}/lz_rule_config.box" \ | ||
| awk 'NF != "0" {system("sed -i"$0" -e '\''\/\^#\/d'\'' ""'"${PATH_CONFIGS}/lz_rule_config.box"'")}' | ||
|
||
## 获取备份参数 | ||
## 输入项: | ||
## 全局常量及变量 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/sh | ||
# lz_rule_address_query.sh v4.3.9 | ||
# lz_rule_address_query.sh v4.4.0 | ||
# By LZ 妙妙呜 ([email protected]) | ||
|
||
## 网址信息查询脚本 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/sh | ||
# lz_rule_func.sh v4.3.9 | ||
# lz_rule_func.sh v4.4.0 | ||
# By LZ 妙妙呜 ([email protected]) | ||
|
||
#BEIGIN | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/sh | ||
# lz_rule_status.sh v4.3.9 | ||
# lz_rule_status.sh v4.4.0 | ||
# By LZ 妙妙呜 ([email protected]) | ||
|
||
## 显示脚本运行状态脚本 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/sh | ||
# lz_vpn_daemon.sh v4.3.9 | ||
# lz_vpn_daemon.sh v4.4.0 | ||
# By LZ 妙妙呜 ([email protected]) | ||
|
||
## 虚拟专网客户端路由刷新处理后台守护进程脚本 | ||
|
@@ -9,7 +9,7 @@ | |
|
||
#BEIGIN | ||
## 版本号 | ||
LZ_VERSION=v4.3.9 | ||
LZ_VERSION=v4.4.0 | ||
|
||
## 项目接口文件部署路径 | ||
PATH_INTERFACE="${0%/*}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/sh | ||
# lz_rule_service.sh v4.3.9 | ||
# lz_rule_service.sh v4.4.0 | ||
# By LZ 妙妙呜 ([email protected]) | ||
|
||
## 服务接口脚本 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
# lz_policy_routing.js v4.3.9 | ||
# lz_policy_routing.js v4.4.0 | ||
# By LZ 妙妙呜 ([email protected]) | ||
# LZ JavaScript for Asuswrt-Merlin Router | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/sh | ||
# lz_rule.sh v4.3.9 | ||
# lz_rule.sh v4.4.0 | ||
# By LZ 妙妙呜 ([email protected]) | ||
|
||
# 本软件采用CIDR(无类别域间路由,Classless Inter-Domain Routing)技术,是一个在Internet上创建附加地 | ||
|
@@ -80,7 +80,7 @@ | |
## -------------全局数据定义及初始化------------------- | ||
|
||
## 版本号 | ||
LZ_VERSION=v4.3.9 | ||
LZ_VERSION=v4.4.0 | ||
|
||
## 运行状态查询命令 | ||
SHOW_STATUS="status" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/sh | ||
# uninstall.sh v4.3.9 | ||
# uninstall.sh v4.4.0 | ||
# By LZ ([email protected]) | ||
|
||
# LZ RULE script for Asuswrt-Merlin Router | ||
|
@@ -8,7 +8,7 @@ | |
|
||
# BEIGIN | ||
|
||
LZ_VERSION=v4.3.9 | ||
LZ_VERSION=v4.4.0 | ||
TIMEOUT=10 | ||
CURRENT_PATH="${0%/*}" | ||
[ "${CURRENT_PATH:0:1}" != '/' ] && CURRENT_PATH="$( pwd )${CURRENT_PATH#*.}" | ||
|