From d6efc4e8a3a0f221db37732feea6f1a6aa57202a Mon Sep 17 00:00:00 2001 From: Hyy2001X <1804430051@qq.com> Date: Sun, 3 Oct 2021 00:38:26 +0800 Subject: [PATCH] =?UTF-8?q?V6.6.0=20=E9=99=90=E5=88=B6=E5=8D=95=E4=B8=AA?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E8=BF=90=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/AutoUpdate.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Scripts/AutoUpdate.sh b/Scripts/AutoUpdate.sh index 5ebd2ba..0dc18f3 100755 --- a/Scripts/AutoUpdate.sh +++ b/Scripts/AutoUpdate.sh @@ -3,7 +3,7 @@ # AutoUpdate for Openwrt # Dependences: bash wget-ssl/wget/uclient-fetch curl openssl jsonfilter -Version=V6.5.9 +Version=V6.6.0 function TITLE() { clear && echo "Openwrt-AutoUpdate Script by Hyy2001 ${Version}" @@ -1162,6 +1162,14 @@ function AutoUpdate_Main() { done } +KILL_OTHER() { + local i;for i in $(ps | grep -v grep | grep $1 | grep -v $$ | awk '{print $1}');do + kill -9 ${i} 2> /dev/null + done +} + +KILL_OTHER AutoUpdate.sh + Running_Path=/tmp/AutoUpdate Log_Path=/tmp API_File=${Running_Path}/API