Skip to content

Instantly share code, notes, and snippets.

@ITJesse
Last active June 24, 2020 01:27
Show Gist options
  • Save ITJesse/380489a742c92261a1e02935dafec240 to your computer and use it in GitHub Desktop.
Save ITJesse/380489a742c92261a1e02935dafec240 to your computer and use it in GitHub Desktop.
#!/bin/sh
KERNEL_VERSION="3.13.0-29"
sudo apt-get update
sudo aptitude install -y linux-image-${KERNEL_VERSION}-generic \
linux-headers-${KERNEL_VERSION} linux-image-extra-${KERNEL_VERSION}-generic
sudo sed -i "s/GRUB_DEFAULT=.*/GRUB_DEFAULT=\"Advanced options for Ubuntu>Ubuntu, with Linux ${KERNEL_VERSION}-generic\"/" /etc/default/grub
sudo update-grub
sudo reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment