If you’re using yum-cron and want to automatically reboot your CentOS box whenever the kernel gets updated you can add this code to /etc/cron.daily/0yum.cron right before exit 0 at the end:
entry=`cat /boot/grub/grub.conf | grep ‘^default’ | cut -d ‘=’ -f2` entry=`expr $entry + 1` if [ “`cat /boot/grub/grub.conf | grep ‘^title’ | tail […]
Recent Comments