Update socat.sh
parent
099aa1853a
commit
b5a9def022
2
socat.sh
2
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
|
||||
|
|
Loading…
Reference in New Issue