kdumpctl: rename function name check_config

check_config is actually checking the files timestamp and rebuilding initrd.
Rename it to check_rebuild instead thus check_config can be used for checking
config file valid or not.

Signed-off-by: Dave Young <dyoung@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
This commit is contained in:
dyoung@redhat.com 2013-03-05 16:07:37 +08:00 committed by Baoquan He
parent 218456d453
commit 69777ccff7

View File

@ -72,7 +72,7 @@ function check_executable()
done done
} }
function check_config() function check_rebuild()
{ {
local extra_modules modified_files="" local extra_modules modified_files=""
local _force_rebuild force_rebuild="0" local _force_rebuild force_rebuild="0"
@ -379,8 +379,7 @@ function start()
fi fi
fi fi
check_rebuild
check_config
if [ $? != 0 ]; then if [ $? != 0 ]; then
echo "Starting kdump: [FAILED]" echo "Starting kdump: [FAILED]"
return 1 return 1