Remove the $DUMPDIR variable. It's redundant and the rest of the

script uses $dumpdir directly.
This commit is contained in:
mtm 2008-07-06 08:31:29 +00:00
parent e28d296d11
commit 661fae6762

View File

@ -17,11 +17,6 @@ stop_cmd=":"
savecore_prestart()
{
# ${DUMPDIR} should be a directory or a symbolic link
# to the crash directory if core dumps are to be saved.
#
DUMPDIR="${dumpdir:-/var/crash}"
# Quit if we have no dump device
case ${dumpdev} in
[Nn][Oo] | '')
@ -69,7 +64,7 @@ savecore_start()
esac
if savecore -C "${dumpdir}" "${dev}" >/dev/null; then
savecore ${savecore_flags} ${DUMPDIR} ${dumpdev}
savecore ${savecore_flags} ${dumpdir} ${dumpdev}
else
[ -z "${rc_quiet}" ] && echo "No core dumps found"
fi