Update linupx-scripts.sh

This commit is contained in:
2023-08-12 14:14:26 -05:00
parent e3923bfbe7
commit 0ae732a478

View File

@@ -712,7 +712,7 @@ RECONFIGURE_NETWORK(){
netplan apply >/dev/null 2>&1
echo "${idsCL[Green]}Done${idsCL[Default]}\n\n"
elif grep /etc/sysconfig/network-scripts/ifcfg-eth0 -e "Generated by VMWare" >/dev/null; then
elif grep /etc/sysconfig/network-scripts/ifcfg-eth0 -e "Generated by VMWare" || [ ! -f /etc/sysconfig/network-scripts/ifcfg-eth0 ] >/dev/null; then
rm -f /etc/sysconfig/network-scripts/ifcfg-eth0 >/dev/null 2>&1
echo -e "TYPE=Ethernet
PROXY_METHOD=none