Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Add Comment
Please, Sign In to add comment