fix_network.sh 427 Bytes
Newer Older
David Beniamine's avatar
David Beniamine committed
1 2 3 4 5 6 7 8
#!/bin/bash
# Fix ethernet issues
echo "# The primary eth0 interface" | sudo tee --append /etc/network/interfaces
echo "auto eth0" | sudo tee --append /etc/network/interfaces
echo "allow-hotplug eth0" | sudo tee --append /etc/network/interfaces
echo "iface eth0 inet dhcp" | sudo tee --append /etc/network/interfaces
sudo sed -i 's/^\(GRUB_CMDLINE_LINUX_DEFAULT="quiet\)"/\1 pcie_aspm=off"/' /etc/default/grub
sudo update-grub