From: Valentin Vidic Date: Tue, 15 Oct 2013 08:56:37 +0000 (+0200) Subject: Ask for reboot unless new kernel is already installed. X-Git-Tag: debian/7.0.1~9 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=5bd4bb217b8017cc7da5bff5c61414b26ecc556d;p=carnet-upgrade.git Ask for reboot unless new kernel is already installed. --- diff --git a/src/functions.sh b/src/functions.sh index 8df87cc..7037e0d 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -480,7 +480,9 @@ reboot_required () { running_version=$( uname -v ) log "Running kernel: $running_release $running_version" - if grep -q "$running_release .* $running_version" $default_kernel; then + if [ "$kernel_package" != "${kernel_package#linux-image-3.2.0-}" ] || + grep -q "$running_release .* $running_version" $default_kernel + then log "Latest kernel version is running." return 1 else