summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/savecore
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2012-12-14 15:12:08 +0000
committerpjd <pjd@FreeBSD.org>2012-12-14 15:12:08 +0000
commit1d3ec906ca23ea5f5ff60e8ebe9b3bcc4f9033d2 (patch)
treeff13c1f2adc4025c6e1ae94e7bf27721174fc2bc /etc/rc.d/savecore
parentab75315eecbefcf8a215a0a13500f0923fc962f9 (diff)
downloadFreeBSD-src-1d3ec906ca23ea5f5ff60e8ebe9b3bcc4f9033d2.zip
FreeBSD-src-1d3ec906ca23ea5f5ff60e8ebe9b3bcc4f9033d2.tar.gz
- When checking if a dump exists on the given device there is no need to
provide dump directory. Eliminate this redundant argument. This changes the usage, but the only risk here is that a warning will be printed about directory given as device. - Update usage of -C option. - When clearing dump header from the given device there is also no need to provide dump directory, although additional arguments for -c were not documented. - Document that -v can be used with -c and that list of devices can be given. Obtained from: WHEEL Systems
Diffstat (limited to 'etc/rc.d/savecore')
-rwxr-xr-xetc/rc.d/savecore2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.d/savecore b/etc/rc.d/savecore
index 4efb7db..3e61adc 100755
--- a/etc/rc.d/savecore
+++ b/etc/rc.d/savecore
@@ -62,7 +62,7 @@ savecore_start()
;;
esac
- if savecore -C "${dumpdir}" "${dev}" >/dev/null; then
+ if savecore -C "${dev}" >/dev/null; then
savecore ${savecore_flags} ${dumpdir} ${dumpdev}
if checkyesno crashinfo_enable; then
${crashinfo_program} -d ${dumpdir}
OpenPOWER on IntegriCloud