Update socat.sh

This commit is contained in:
iiiiiii1
2018-05-11 20:07:52 +08:00
committed by GitHub
parent d8539da4ab
commit 9a55c06d0d
+1 -1
View File
@@ -66,7 +66,7 @@ start_socat(){
source /etc/os-release &>/dev/null
if [[ "${ID}" == "debian" && ${VERSION_ID} -ge 9 ]];then
echo -e "${Green}检测到【Debian ${VERSION_ID}】无/etc/rc.local自启,正在为其配置... ${Font} "
elif [[ "${ID}" == "ubuntu" && `echo "${VERSION_ID}" | cut -d '.' -f1` -ge 18 ]];then
elif [[ "${ID}" == "ubuntu" && `echo "${VERSION_ID}" | cut -d '.' -f1` -ge 17 ]];then
echo -e "${Green}检测到【Ubuntu ${VERSION_ID}】无/etc/rc.local自启,正在为其配置... ${Font} "
echo "[Unit]
Description=/etc/rc.local