From 5bd4bb217b8017cc7da5bff5c61414b26ecc556d Mon Sep 17 00:00:00 2001 From: Valentin Vidic Date: Tue, 15 Oct 2013 10:56:37 +0200 Subject: [PATCH] Ask for reboot unless new kernel is already installed. --- src/functions.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 1.7.10.4