Big but self-explanatory commit: rename the tool. The name choice was kdumpst, since it's a tool to enable both kdump and pstore setting, also it's a silly wordplay with the superlative of kdump, as in "kdumpest". It's an invasive change (touches most of the files), but should offer no functional change other than logging messages showing kdumpst now, instead of kdump, and some filenames. Notice it doesn't touch documentation, which will be done in a subsequent commit. Signed-off-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
22 lines
533 B
Bash
22 lines
533 B
Bash
|
|
# This function has the purpose of loading the necessary external
|
|
# variables, in the form of one (or more) configuration file(s). If the
|
|
# procedure fails, we must abort - otherwise it'll fail in a later stage.
|
|
load_kdumpst_config() {
|
|
HAVE_CFG_FILES=0
|
|
shopt -s nullglob
|
|
for cfg in "/usr/share/kdumpst.d"/*; do
|
|
if [ -f "$cfg" ]; then
|
|
. "$cfg"
|
|
HAVE_CFG_FILES=1
|
|
fi
|
|
done
|
|
shopt -u nullglob
|
|
|
|
if [ ${HAVE_CFG_FILES} -eq 0 ]; then
|
|
logger "kdumpst: no config files in /usr/share/kdumpst.d/ - aborting."
|
|
exit 1
|
|
fi
|
|
}
|
|
|