Fix savecore service on FreeBSD

savecore -C only needs the dumpdevice otherwise it causes an error on startup.

This fixes #40.
This commit is contained in:
Anthony Donnelly 2015-03-04 09:07:12 +00:00 committed by William Hubbs
parent e16b7183e9
commit be497229b6

View File

@ -23,7 +23,7 @@ start()
# Don't quote ${dump_device}, so that if it's unset,
# savecore will check on the partitions listed in fstab
# without errors in the output
savecore -C "$dump_dir" $dump_device >/dev/null
savecore -C $dump_device >/dev/null
else
ls "$dump_dir"/bsd* > /dev/null 2>&1
fi