svn commit: r190216 - stable/7/etc/rc.d

Craig Rodrigues rodrigc at FreeBSD.org
Sat Mar 21 14:12:18 PDT 2009


Author: rodrigc
Date: Sat Mar 21 21:12:16 2009
New Revision: 190216
URL: http://svn.freebsd.org/changeset/base/190216

Log:
  MFC r180318:
  
  Remove the $DUMPDIR variable. It's redundant and the rest of the
  script uses $dumpdir directly.

Modified:
  stable/7/etc/rc.d/savecore

Modified: stable/7/etc/rc.d/savecore
==============================================================================
--- stable/7/etc/rc.d/savecore	Sat Mar 21 20:44:46 2009	(r190215)
+++ stable/7/etc/rc.d/savecore	Sat Mar 21 21:12:16 2009	(r190216)
@@ -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] | '')
@@ -58,7 +53,7 @@ savecore_prestart()
 savecore_start()
 {
 	echo "Checking for core dump on ${dumpdev}..."
-	savecore ${savecore_flags} ${DUMPDIR} ${dumpdev}
+	savecore ${savecore_flags} ${dumpdir} ${dumpdev}
 }
 
 load_rc_config $name


More information about the svn-src-all mailing list