From 534ca000f9183e1ff0eef102f85f101a45c8ae80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=AC=E5=93=A5=E4=BE=83=E4=BE=83=E4=BE=83ygkkk?= Date: Tue, 11 Apr 2023 01:43:15 +0000 Subject: [PATCH] Update 661.sh --- 661.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/661.sh b/661.sh index 019a096..dd4857c 100644 --- a/661.sh +++ b/661.sh @@ -390,7 +390,7 @@ screen -d $Attached done fi if [[ -e /root/WARP-UP.sh ]]; then -screen -S up -X quit 2>/dev/null ; screen -UdmS up bash -c '/bin/bash /root/WARP-UP.sh' +screen -S up -X quit ; screen -UdmS up bash -c '/bin/bash /root/WARP-UP.sh' else green "安装warp在线监测守护进程" cat>/root/WARP-UP.sh<<-\EOF @@ -440,7 +440,7 @@ EOF #[[ -n $stop ]] && sed -i "s/60s/${stop}s/g;s/60秒/${stop}秒/g" /root/WARP-UP.sh || green "默认间隔60秒" #readp "warp状态为中断时(连续5次失败自动关闭warp),继续检测WARP状态间隔时间(回车默认50秒),请输入间隔时间(例:50秒,输入50):" goon #[[ -n $goon ]] && sed -i "s/50s/${goon}s/g;s/50秒/${goon}秒/g" /root/WARP-UP.sh || green "默认间隔50秒" -[[ -e /root/WARP-UP.sh ]] && screen -S up -X quit 2>/dev/null ; screen -UdmS up bash -c '/bin/bash /root/WARP-UP.sh' +[[ -e /root/WARP-UP.sh ]] && screen -S up -X quit ; screen -UdmS up bash -c '/bin/bash /root/WARP-UP.sh' fi } @@ -1112,7 +1112,7 @@ fi } cwg(){ -screen -S up -X quit 2>/dev/null +screen -S up -X quit systemctl disable warp-go >/dev/null 2>&1 kill -15 $(pgrep warp-go) >/dev/null 2>&1 chattr -i /etc/resolv.conf >/dev/null 2>&1 @@ -1641,7 +1641,7 @@ fi } cwg(){ -screen -S up -X quit 2>/dev/null +screen -S up -X quit wg-quick down wgcf >/dev/null 2>&1 systemctl disable wg-quick@wgcf >/dev/null 2>&1 $yumapt remove wireguard-tools