diff --git a/scripts/ubuntu_tweaks.sh b/scripts/ubuntu_tweaks.sh index 48f5d1a7..688a495e 100755 --- a/scripts/ubuntu_tweaks.sh +++ b/scripts/ubuntu_tweaks.sh @@ -39,6 +39,14 @@ swapoff /swapfile || true rm -f /swapfile sed -i '/swapfile/d' /etc/fstab +# Network configuration +interface=$(ip route get 1.1.1.1 | head -1 | cut -d' ' -f5) + +cat < /etc/network/interfaces +allow-hotplug $interface +iface $interface inet dhcp +EOF + # Purge unused Ubuntu packages PKGS=" apport @@ -54,6 +62,7 @@ gnome-power-manager gnome-software gnome-software-common memtest86+ +network-manager* orca popularity-contest python3-update-manager @@ -87,7 +96,6 @@ systemctl disable $SERVICES SERVICES=" grub-common.service -NetworkManager-wait-online.service plymouth-quit-wait.service " systemctl mask $SERVICES