Last active
April 17, 2018 16:56
-
-
Save H2so4/721f9042e7b59f07e24c533eabbf9238 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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