From b5a9def022865bf0f368d55ddd751935b32c80ad Mon Sep 17 00:00:00 2001 From: iiiiiii1 <25471406+iiiiiii1@users.noreply.github.com> Date: Fri, 11 May 2018 19:29:23 +0800 Subject: [PATCH] Update socat.sh --- socat.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/socat.sh b/socat.sh index 33c07a5..b15d7b2 100644 --- a/socat.sh +++ b/socat.sh @@ -65,7 +65,9 @@ start_socat(){ else source /etc/os-release &>/dev/null if [[ "${ID}" == "debian" && ${VERSION_ID} -ge 9 ]];then + echo -e "${OK} ${GreenBG} 当前系统为 Debian ${VERSION_ID} ${Font} " elif [[ "${ID}" == "ubuntu" && `echo "${VERSION_ID}" | cut -d '.' -f1` -ge 18 ]];then + echo -e "${OK} ${GreenBG} 当前系统为 Ubuntu ${VERSION_ID} ${Font} " echo "[Unit] Description=/etc/rc.local ConditionPathExists=/etc/rc.local