diff --git a/defaults.inc b/defaults.inc index cf13982..eb05937 100755 --- a/defaults.inc +++ b/defaults.inc @@ -2,7 +2,7 @@ action="$1" FOLDER='/opt/idssys/linupx' -VERS='6.60.15-09202023' +VERS='6.60.16-09272023' diff --git a/linupx-scripts.sh b/linupx-scripts.sh index 307d1fc..c49a6da 100755 --- a/linupx-scripts.sh +++ b/linupx-scripts.sh @@ -720,9 +720,10 @@ RECONFIGURE_NETWORK(){ netplan apply >/dev/null 2>&1 echo "${idsCL[Green]}Done${idsCL[Default]}\n\n" - elif [ ! -f /etc/sysconfig/network-scripts/ifcfg-eth0 ] || grep /etc/sysconfig/network-scripts/ifcfg-eth0 -e "Generated by VMWare" >/dev/null; then - rm -f /etc/sysconfig/network-scripts/ifcfg-eth0 >/dev/null 2>&1 - echo -e "TYPE=Ethernet + 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 + rm -f /etc/sysconfig/network-scripts/ifcfg-eth0 >/dev/null 2>&1 + echo -e "TYPE=Ethernet PROXY_METHOD=none BROWSER_ONLY=no BOOTPROTO=none @@ -741,7 +742,8 @@ DNS2=10.10.10.11 IPV6_DISABLED=yes " > /etc/sysconfig/network-scripts/ifcfg-eth0 - /usr/bin/nmcli connection up eth0 >/dev/null 2>&1 + /usr/bin/nmcli connection up eth0 >/dev/null 2>&1 + fi fi