From f4a3963022809b732a22e3bec643b785133d4d77 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: Thu, 18 Jan 2024 05:30:19 +0000 Subject: [PATCH] Add new file --- point/CFcdnym.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 point/CFcdnym.sh diff --git a/point/CFcdnym.sh b/point/CFcdnym.sh new file mode 100644 index 0000000..62607e8 --- /dev/null +++ b/point/CFcdnym.sh @@ -0,0 +1,29 @@ +#!/bin/bash +export LANG=en_US.UTF-8 +if [ ! -f yg_update ]; then +yellow "请稍等……" +if [ -x "$(command -v apt-get)" ]; then +apt update -y >/dev/null 2>&1 +apt install lzip unzip qrencode -y >/dev/null 2>&1 +elif [ -x "$(command -v yum)" ]; then +yum update -y >/dev/null 2>&1 +yum install epel-release -y +yum install lzip unzip qrencode -y +elif [ -x "$(command -v dnf)" ]; then +dnf update -y >/dev/null 2>&1 +dnf install lzip unzip qrencode -y >/dev/null 2>&1 +fi +pkg update -y >/dev/null 2>&1 +#pkg upgrade -y +pkg install curl wget lzip -y >/dev/null 2>&1 +apk add openssh curl wget lzip -y >/dev/null 2>&1 +touch yg_update +fi +script_name=$(basename "$BASH_SOURCE") +if [ "$script_name" = "endip.sh" ]; then +curl -sSL https://gitlab.com/rwkgyg/CFwarp/raw/main/point/endip1.sh -o endip1.sh && chmod +x endip1.sh && bash endip1.sh +elif [ "$script_name" = "CFcdnym.sh" ]; then +curl -sSL https://gitlab.com/rwkgyg/CFwarp/raw/main/point/CFcdnym1.sh -o CFcdnym1.sh && chmod +x CFcdnym1.sh && bash CFcdnym1.sh +elif [ "$script_name" = "cfip.sh" ]; then +curl -sSL https://gitlab.com/rwkgyg/CFwarp/raw/main/point/cfip1.sh -o cfip1.sh && chmod +x cfip1.sh && bash cfip1.sh +fi