update
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
action="$1"
|
action="$1"
|
||||||
FOLDER='/opt/idssys/linupx'
|
FOLDER='/opt/idssys/linupx'
|
||||||
VERS='6.60.15-09202023'
|
VERS='6.60.16-09272023'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -720,9 +720,10 @@ RECONFIGURE_NETWORK(){
|
|||||||
netplan apply >/dev/null 2>&1
|
netplan apply >/dev/null 2>&1
|
||||||
echo "${idsCL[Green]}Done${idsCL[Default]}\n\n"
|
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
|
elif [ -d /etc/sysconfig/network-scripts ]; then
|
||||||
rm -f /etc/sysconfig/network-scripts/ifcfg-eth0 >/dev/null 2>&1
|
if [ ! -f /etc/sysconfig/network-scripts/ifcfg-eth0 ] || grep /etc/sysconfig/network-scripts/ifcfg-eth0 -e "Generated by VMWare" >/dev/null; then
|
||||||
echo -e "TYPE=Ethernet
|
rm -f /etc/sysconfig/network-scripts/ifcfg-eth0 >/dev/null 2>&1
|
||||||
|
echo -e "TYPE=Ethernet
|
||||||
PROXY_METHOD=none
|
PROXY_METHOD=none
|
||||||
BROWSER_ONLY=no
|
BROWSER_ONLY=no
|
||||||
BOOTPROTO=none
|
BOOTPROTO=none
|
||||||
@@ -741,7 +742,8 @@ DNS2=10.10.10.11
|
|||||||
IPV6_DISABLED=yes
|
IPV6_DISABLED=yes
|
||||||
" > /etc/sysconfig/network-scripts/ifcfg-eth0
|
" > /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
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user