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
1 changed files with 2 additions and 3 deletions

View File

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