Update linupx-scripts.sh
This commit is contained in:
@@ -712,9 +712,9 @@ 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" || [ ! -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
|
||||
elif [ ! -f /etc/sysconfig/network-scripts/ifcfg-eth0 ] || grep /etc/sysconfig/network-scripts/ifcfg-eth0 -e "Generated by VMWare" >/dev/null; then
|
||||
[ -f /etc/sysconfig/network-scripts/ifcfg-eth0 ] && rm -f /etc/sysconfig/network-scripts/ifcfg-eth0 >/dev/null 2>&1
|
||||
echo -e "TYPE=Ethernet
|
||||
PROXY_METHOD=none
|
||||
BROWSER_ONLY=no
|
||||
BOOTPROTO=none
|
||||
@@ -731,9 +731,9 @@ GATEWAY=10.10.0.1
|
||||
DNS1=10.10.10.10
|
||||
DNS2=10.10.10.11
|
||||
IPV6_DISABLED=yes
|
||||
" > /etc/sysconfig/network-scripts/ifcfg-eth0 >/dev/null 2>&1
|
||||
" > /etc/sysconfig/network-scripts/ifcfg-eth0
|
||||
|
||||
/usr/bin/nmcli connection up eth0
|
||||
/usr/bin/nmcli connection up eth0
|
||||
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user