Update socat.sh
parent
6f171602a2
commit
099aa1853a
1
socat.sh
1
socat.sh
|
@ -65,6 +65,7 @@ start_socat(){
|
||||||
else
|
else
|
||||||
source /etc/os-release &>/dev/null
|
source /etc/os-release &>/dev/null
|
||||||
if [[ "${ID}" == "debian" && ${VERSION_ID} -ge 9 ]];then
|
if [[ "${ID}" == "debian" && ${VERSION_ID} -ge 9 ]];then
|
||||||
|
elif [[ "${ID}" == "ubuntu" && `echo "${VERSION_ID}" | cut -d '.' -f1` -ge 18 ]];then
|
||||||
echo "[Unit]
|
echo "[Unit]
|
||||||
Description=/etc/rc.local
|
Description=/etc/rc.local
|
||||||
ConditionPathExists=/etc/rc.local
|
ConditionPathExists=/etc/rc.local
|
||||||
|
|
Loading…
Reference in New Issue