Update socat.sh
parent
84684692d3
commit
cfe91aad12
1
socat.sh
1
socat.sh
|
@ -64,6 +64,7 @@ start_socat(){
|
||||||
chmod +x /etc/rc.d/rc.local
|
chmod +x /etc/rc.d/rc.local
|
||||||
else
|
else
|
||||||
source /etc/os-release &>/dev/null
|
source /etc/os-release &>/dev/null
|
||||||
|
if [[ "${ID}" == "debian" && ${VERSION_ID} -ge 9 ]];then
|
||||||
echo -e "${Green}检测到 Debian${VERSION_ID} 无/etc/rc.local自启,正在为其配置... ${Font} "
|
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 18 ]];then
|
||||||
echo -e "${Green}检测到 Ubuntu${VERSION_ID} 无/etc/rc.local自启,正在为其配置... ${Font} "
|
echo -e "${Green}检测到 Ubuntu${VERSION_ID} 无/etc/rc.local自启,正在为其配置... ${Font} "
|
||||||
|
|
Loading…
Reference in New Issue