diff --git a/postInstall.sh b/postInstall.sh index d0e9016d5c053f239fcd0194560d70fd76fc4b91..41f8d6753150e950c581d098ecb0c06afeba7100 100755 --- a/postInstall.sh +++ b/postInstall.sh @@ -31,10 +31,10 @@ do done # Fix ethernet issues -sudo echo "# The primary eth0 interface" >> /etc/network/interfaces -sudo echo "auto eth0" >> /etc/network/interfaces -sudo echo "allow-hotplug eth0" >> /etc/network/interfaces -sudo echo "iface eth0 inet dhcp" >> /etc/network/interfaces +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