För att kontrollera det kan du köra:
Kod: Markera allt
#! /bin/bash
#
CURRENT_KRNL=$(ls -l /boot/vmlinuz | awk '{ print $11 }' | sed 's/vmlinuz-//g')
RUNNING_KRNL=$(uname -r)
#
echo
echo "-Running kernel is: $(uname -r)"
if [[ $RUNNING_KRNL != $CURRENT_KRNL ]]; then
echo "-A newer kernel is available, consider rebooting"
echo "-Newer version: $CURRENT_KRNL"
fi
echo