2013-03-09 19:17:03 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
|
|
if [[ `uname -r` != "3.5.0-17-generic" ]]; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
echo 'An old kernel was found on the guest machine and it will be upgraded' 1>&2
|
|
|
|
echo 'Please reload the box after provisioning when finished' 1>&2
|
|
|
|
sudo apt-get update
|
2013-03-19 05:52:36 +00:00
|
|
|
sudo apt-get install linux-image-3.5.0-26-generic linux-headers-3.5.0-26-generic -y
|
2013-03-09 19:17:03 +00:00
|
|
|
sudo apt-get dist-upgrade -y
|
|
|
|
sudo apt-get autoremove -y
|