From 099aa1853a78958421c3d267c2f45ba70e14de06 Mon Sep 17 00:00:00 2001 From: iiiiiii1 <25471406+iiiiiii1@users.noreply.github.com> Date: Fri, 11 May 2018 19:17:04 +0800 Subject: [PATCH] Update socat.sh --- socat.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/socat.sh b/socat.sh index 6ab7cbc..33c07a5 100644 --- a/socat.sh +++ b/socat.sh @@ -65,6 +65,7 @@ start_socat(){ else source /etc/os-release &>/dev/null if [[ "${ID}" == "debian" && ${VERSION_ID} -ge 9 ]];then + elif [[ "${ID}" == "ubuntu" && `echo "${VERSION_ID}" | cut -d '.' -f1` -ge 18 ]];then echo "[Unit] Description=/etc/rc.local ConditionPathExists=/etc/rc.local