Skip to content

Instantly share code, notes, and snippets.

@H2so4
Last active April 17, 2018 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save H2so4/721f9042e7b59f07e24c533eabbf9238 to your computer and use it in GitHub Desktop.
Save H2so4/721f9042e7b59f07e24c533eabbf9238 to your computer and use it in GitHub Desktop.
source /etc/lsb-release
if [[ "${DISTRIB_CODENAME}" == "xenial" ]]; then
kernel_version="4.4.0-1052"
elif [[ "${DISTRIB_CODENAME}" == "trusty" ]]; then
kernel_version="4.4.0-1016"
else
echo "!!! YOU MUST UPGRADE TO <= TRUSTY"
fi
apt-get -y autoremove ; apt-get update; apt-get -y install linux-aws linux-image-${kernel_version}-aws
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment