diff --git a/linupx-scripts.sh b/linupx-scripts.sh index 1eabbc1..7ee2efd 100755 --- a/linupx-scripts.sh +++ b/linupx-scripts.sh @@ -750,7 +750,7 @@ RECONFIGURE_NETWORK(){ if [ -f /etc/netplan/99-netcfg-* ]; then rm -f /etc/netplan/*.yaml >/dev/null 2>&1 - mv /etc/netplan/eth0* /etc/netplan/eth0.yaml + [ -f /etc/netplan/eth0* ] && mv /etc/netplan/eth0* /etc/netplan/eth0.yaml if [ ! -f /etc/netplan/eth0.yaml ]; then echo -e "network: version: 2