mirror of
https://github.com/kenzok8/small-package.git
synced 2026-02-04 13:57:45 +08:00
update 2026-01-31 20:56:26
This commit is contained in:
@@ -145,8 +145,8 @@ check_config() {
|
|||||||
proxy_network=$(grep -F '[[proxy_network]]' $config_file)
|
proxy_network=$(grep -F '[[proxy_network]]' $config_file)
|
||||||
wireguard_port=$(cat $config_file | grep "wireguard_listen = " | awk -F ":" '{print $2}'| tr -d '/", ')
|
wireguard_port=$(cat $config_file | grep "wireguard_listen = " | awk -F ":" '{print $2}'| tr -d '/", ')
|
||||||
log="$(uci -q get easytier.@easytier[0].log || echo off)"
|
log="$(uci -q get easytier.@easytier[0].log || echo off)"
|
||||||
echo "$(date '+%Y-%m-%d %H:%M:%S') easytier : 检测配置文件可用性 ${easytierbin} --check-config ${config_file}" >>/tmp/easytier.log
|
echo "$(date '+%Y-%m-%d %H:%M:%S') easytier : 检测配置文件可用性 ${easytierbin} --check-config --config-file ${config_file}" >>/tmp/easytier.log
|
||||||
${easytierbin} --check-config ${config_file} >> /tmp/easytier.log 2>&1 &
|
${easytierbin} --check-config --config-file ${config_file} >> /tmp/easytier.log 2>&1 &
|
||||||
|
|
||||||
echo "$(date '+%Y-%m-%d %H:%M:%S') easytier : 开始运行 ${easytierbin} -c ${config_file}" >>/tmp/easytier.log
|
echo "$(date '+%Y-%m-%d %H:%M:%S') easytier : 开始运行 ${easytierbin} -c ${config_file}" >>/tmp/easytier.log
|
||||||
procd_open_instance
|
procd_open_instance
|
||||||
@@ -437,11 +437,11 @@ start_et() {
|
|||||||
|
|
||||||
ps | grep 'easytier-core' | grep -v grep | awk '{print $1}' | xargs kill >/dev/null 2>&1
|
ps | grep 'easytier-core' | grep -v grep | awk '{print $1}' | xargs kill >/dev/null 2>&1
|
||||||
ps | grep 'easytier-core' | grep -v grep | awk '{print $1}' | xargs kill -9 >/dev/null 2>&1
|
ps | grep 'easytier-core' | grep -v grep | awk '{print $1}' | xargs kill -9 >/dev/null 2>&1
|
||||||
|
get_etconfig
|
||||||
if [ "$etcmd" = "config" ] ; then
|
if [ "$etcmd" = "config" ] ; then
|
||||||
#配置文件启动方式
|
#配置文件启动方式
|
||||||
check_config
|
check_config
|
||||||
else
|
else
|
||||||
get_etconfig
|
|
||||||
procd_open_instance "easytier_core"
|
procd_open_instance "easytier_core"
|
||||||
get_tz
|
get_tz
|
||||||
[ -z "$SET_TZ" ] || procd_set_param env TZ="$SET_TZ"
|
[ -z "$SET_TZ" ] || procd_set_param env TZ="$SET_TZ"
|
||||||
|
|||||||
@@ -21,13 +21,13 @@ define Download/geoip
|
|||||||
HASH:=ed2de9add79623e2e5dbc5930ee39cc7037a7c6e0ecd58ba528b6f73d61457b5
|
HASH:=ed2de9add79623e2e5dbc5930ee39cc7037a7c6e0ecd58ba528b6f73d61457b5
|
||||||
endef
|
endef
|
||||||
|
|
||||||
GEOSITE_VER:=20260130112058
|
GEOSITE_VER:=20260131100437
|
||||||
GEOSITE_FILE:=dlc.dat.$(GEOSITE_VER)
|
GEOSITE_FILE:=dlc.dat.$(GEOSITE_VER)
|
||||||
define Download/geosite
|
define Download/geosite
|
||||||
URL:=https://github.com/v2fly/domain-list-community/releases/download/$(GEOSITE_VER)/
|
URL:=https://github.com/v2fly/domain-list-community/releases/download/$(GEOSITE_VER)/
|
||||||
URL_FILE:=dlc.dat
|
URL_FILE:=dlc.dat
|
||||||
FILE:=$(GEOSITE_FILE)
|
FILE:=$(GEOSITE_FILE)
|
||||||
HASH:=370e27da65492395e65e7beb660745d523dbc1cf122b32276e5ec3c0ad780329
|
HASH:=e183d477aa4c149a7c809cc2f31b82e6bb22c492421eb96d38c72f4904b4c31c
|
||||||
endef
|
endef
|
||||||
|
|
||||||
GEOSITE_IRAN_VER:=202601260049
|
GEOSITE_IRAN_VER:=202601260049
|
||||||
|
|||||||
Reference in New Issue
Block a user