svn commit: r216153 - stable/7/usr.sbin/crashinfo

Colin Percival cperciva at FreeBSD.org
Fri Dec 3 16:21:39 UTC 2010


Author: cperciva
Date: Fri Dec  3 16:21:39 2010
New Revision: 216153
URL: http://svn.freebsd.org/changeset/base/216153

Log:
  MFC r216077: Teach crashinfo(8) about the kern.bootfile sysctl.
  
  Approved by:	re (bz)

Modified:
  stable/7/usr.sbin/crashinfo/crashinfo.sh
Directory Properties:
  stable/7/usr.sbin/crashinfo/   (props changed)

Modified: stable/7/usr.sbin/crashinfo/crashinfo.sh
==============================================================================
--- stable/7/usr.sbin/crashinfo/crashinfo.sh	Fri Dec  3 16:21:12 2010	(r216152)
+++ stable/7/usr.sbin/crashinfo/crashinfo.sh	Fri Dec  3 16:21:39 2010	(r216153)
@@ -53,7 +53,7 @@ find_kernel()
 	}' $INFO)
 
 	# Look for a matching kernel version.
-	for k in /boot/kernel/kernel $(ls -t /boot/*/kernel); do
+	for k in `sysctl -n kern.bootfile` $(ls -t /boot/*/kernel); do
 		kvers=$(echo 'printf "  Version String: %s", version' | \
 		    gdb -x /dev/stdin -batch $k 2>/dev/null)
 		if [ "$ivers" = "$kvers" ]; then


More information about the svn-src-all mailing list