Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/etc/rc.d/savecore,v retrieving revision 1.7 retrieving revision 1.8 diff -u -p -r1.7 -r1.8 --- src/etc/rc.d/savecore 2004/08/13 18:08:03 1.7 +++ src/etc/rc.d/savecore 2009/09/14 17:34:56 1.8 @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: savecore,v 1.7 2004/08/13 18:08:03 mycroft Exp $ +# $NetBSD: savecore,v 1.8 2009/09/14 17:34:56 apb Exp $ # # PROVIDE: savecore @@ -21,7 +21,9 @@ savecore_start() # if [ -d "${savecore_dir}/." ]; then echo "Checking for core dump..." - savecore $rc_flags "${savecore_dir}" + if savecore -n; then + savecore $rc_flags "${savecore_dir}" + fi else warn "No crash dump directory; savecore not run." fi