summaryrefslogtreecommitdiffstats
path: root/linhes/linhes-system/lh_restart_needed.sh
diff options
context:
space:
mode:
Diffstat (limited to 'linhes/linhes-system/lh_restart_needed.sh')
-rwxr-xr-xlinhes/linhes-system/lh_restart_needed.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/linhes/linhes-system/lh_restart_needed.sh b/linhes/linhes-system/lh_restart_needed.sh
index c939a28..2db8a2d 100755
--- a/linhes/linhes-system/lh_restart_needed.sh
+++ b/linhes/linhes-system/lh_restart_needed.sh
@@ -32,4 +32,8 @@ if [[ $active_kernel != $current_kernel ]]; then
echo "# KERNEL: reboot required"
rc=0
fi
+
+if [[ $rc == 1 ]]; then
+ echo "No reboot needed."
+fi
exit $rc