mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-04 12:52:15 +00:00
Remove the $DUMPDIR variable. It's redundant and the rest of the
script uses $dumpdir directly.
This commit is contained in:
parent
f562910214
commit
9300b74ce4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=180318
@ -17,11 +17,6 @@ stop_cmd=":"
|
|||||||
|
|
||||||
savecore_prestart()
|
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
|
# Quit if we have no dump device
|
||||||
case ${dumpdev} in
|
case ${dumpdev} in
|
||||||
[Nn][Oo] | '')
|
[Nn][Oo] | '')
|
||||||
@ -69,7 +64,7 @@ savecore_start()
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
if savecore -C "${dumpdir}" "${dev}" >/dev/null; then
|
if savecore -C "${dumpdir}" "${dev}" >/dev/null; then
|
||||||
savecore ${savecore_flags} ${DUMPDIR} ${dumpdev}
|
savecore ${savecore_flags} ${dumpdir} ${dumpdev}
|
||||||
else
|
else
|
||||||
[ -z "${rc_quiet}" ] && echo "No core dumps found"
|
[ -z "${rc_quiet}" ] && echo "No core dumps found"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user