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:
parent
218456d453
commit
69777ccff7
5
kdumpctl
5
kdumpctl
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user