mirror of https://gitlab.com/rwkgyg/CFwarp.git
Update 661.sh
This commit is contained in:
parent
b06b1f9119
commit
cd05b468d0
6
661.sh
6
661.sh
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
|
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
wpygV="23.4.9 V 0.9.9 "
|
wpygV="23.4.11 V 0.9.9 "
|
||||||
remoteV=`wget -qO- https://gitlab.com/rwkgyg/CFwarp/raw/main/CFwarp.sh | sed -n 4p | cut -d '"' -f 2`
|
remoteV=`wget -qO- https://gitlab.com/rwkgyg/CFwarp/raw/main/CFwarp.sh | sed -n 4p | cut -d '"' -f 2`
|
||||||
chmod +x /root/CFwarp.sh
|
chmod +x /root/CFwarp.sh
|
||||||
red='\033[0;31m'
|
red='\033[0;31m'
|
||||||
|
@ -390,7 +390,7 @@ screen -d $Attached
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
if [[ -e /root/WARP-UP.sh ]]; then
|
if [[ -e /root/WARP-UP.sh ]]; then
|
||||||
screen -S up -X quit ; screen -UdmS up bash -c '/bin/bash /root/WARP-UP.sh'
|
screen -ls | awk '/\.up/ {print $1}' | cut -d "." -f 1 | xargs kill ; screen -UdmS up bash -c '/bin/bash /root/WARP-UP.sh'
|
||||||
else
|
else
|
||||||
green "安装warp在线监测守护进程"
|
green "安装warp在线监测守护进程"
|
||||||
cat>/root/WARP-UP.sh<<-\EOF
|
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秒"
|
#[[ -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
|
#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秒"
|
#[[ -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 ; screen -UdmS up bash -c '/bin/bash /root/WARP-UP.sh'
|
[[ -e /root/WARP-UP.sh ]] && screen -ls | awk '/\.up/ {print $1}' | cut -d "." -f 1 | xargs kill ; screen -UdmS up bash -c '/bin/bash /root/WARP-UP.sh'
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue