projects
/
carnet-upgrade.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c55fb59
)
Ask for reboot unless new kernel is already installed.
author
Valentin Vidic
<Valentin.Vidic@CARNet.hr>
Tue, 15 Oct 2013 08:56:37 +0000
(10:56 +0200)
committer
Valentin Vidic
<Valentin.Vidic@CARNet.hr>
Tue, 15 Oct 2013 08:56:37 +0000
(10:56 +0200)
src/functions.sh
patch
|
blob
|
history
diff --git
a/src/functions.sh
b/src/functions.sh
index
8df87cc
..
7037e0d
100644
(file)
--- 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