summaryrefslogtreecommitdiff
path: root/check-kernel.in
diff options
context:
space:
mode:
Diffstat (limited to 'check-kernel.in')
-rw-r--r--check-kernel.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/check-kernel.in b/check-kernel.in
index d9c3717..17090d9 100644
--- a/check-kernel.in
+++ b/check-kernel.in
@@ -140,8 +140,7 @@ else
"${installed}" \
"${running}"
if ${reboot}; then
- if declare -F reboot_check_hook >/dev/null \
- && ! reboot_check_hook; then
+ if ! reboot_check_hook; then
>&2 printf 'reboot_check_hook() failed.\n'
exit 1
fi