Update linupx-scripts.sh
This commit is contained in:
@@ -738,7 +738,7 @@ RECONFIGURE_NETWORK(){
|
|||||||
" > /etc/netplan/eth0.yaml >/dev/null 2>&1
|
" > /etc/netplan/eth0.yaml >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
netplan apply >/dev/null 2>&1
|
netplan apply >/dev/null 2>&1
|
||||||
echo "${idsCL[Green]}Done${idsCL[Default]}\n\n"
|
echo -e "${idsCL[Green]}Done${idsCL[Default]}\n\n"
|
||||||
|
|
||||||
elif [ -d /etc/sysconfig/network-scripts ]; then
|
elif [ -d /etc/sysconfig/network-scripts ]; then
|
||||||
if [ ! -f /etc/sysconfig/network-scripts/ifcfg-eth0 ] || grep /etc/sysconfig/network-scripts/ifcfg-eth0 -e "Generated by VMWare" >/dev/null; then
|
if [ ! -f /etc/sysconfig/network-scripts/ifcfg-eth0 ] || grep /etc/sysconfig/network-scripts/ifcfg-eth0 -e "Generated by VMWare" >/dev/null; then
|
||||||
|
|||||||
Reference in New Issue
Block a user