This commit is contained in:
2023-09-27 22:35:52 -05:00
parent f8bd467fcb
commit 8e9ad82bce
2 changed files with 7 additions and 5 deletions

View File

@@ -2,7 +2,7 @@
action="$1"
FOLDER='/opt/idssys/linupx'
VERS='6.60.15-09202023'
VERS='6.60.16-09272023'

View File

@@ -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