Update gl-inet.sh

This commit is contained in:
悟空的日常镜像仓库 2023-09-25 16:41:42 +08:00
parent 9d8057507a
commit d561bdfd9b
1 changed files with 13 additions and 0 deletions

View File

@ -250,6 +250,15 @@ set_glfan_temp() {
else else
echo "错误: 请输入整数." echo "错误: 请输入整数."
fi fi
rollback_old_version() {
download_url="https://ghproxy.com/https://github.com/wukongdaily/gl-inet-onescript/raw/1f25c161512e9b416227f60656e8c2139c993f69/gl-inet.run"
local_file_path="/tmp/gl-inet.run"
wget -O "$local_file_path" "$download_url"
chmod +x "$local_file_path"
"$local_file_path"
}
} }
while true; do while true; do
@ -305,6 +314,10 @@ while true; do
5) 5)
set_glfan_temp set_glfan_temp
;; ;;
h | H)
rollback_old_version
exit 0
;;
q | Q) q | Q)
echo "退出" echo "退出"
exit 0 exit 0