mirror of
https://github.com/xopenwrt/X-OpenWrt-New.git
synced 2026-09-27 07:14:43 +00:00
V6.6.0 限制单个程序运行
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
# AutoUpdate for Openwrt
|
# AutoUpdate for Openwrt
|
||||||
# Dependences: bash wget-ssl/wget/uclient-fetch curl openssl jsonfilter
|
# Dependences: bash wget-ssl/wget/uclient-fetch curl openssl jsonfilter
|
||||||
|
|
||||||
Version=V6.5.9
|
Version=V6.6.0
|
||||||
|
|
||||||
function TITLE() {
|
function TITLE() {
|
||||||
clear && echo "Openwrt-AutoUpdate Script by Hyy2001 ${Version}"
|
clear && echo "Openwrt-AutoUpdate Script by Hyy2001 ${Version}"
|
||||||
@@ -1162,6 +1162,14 @@ function AutoUpdate_Main() {
|
|||||||
done
|
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
|
Running_Path=/tmp/AutoUpdate
|
||||||
Log_Path=/tmp
|
Log_Path=/tmp
|
||||||
API_File=${Running_Path}/API
|
API_File=${Running_Path}/API
|
||||||
|
|||||||
Reference in New Issue
Block a user