svn commit: r216152 - stable/8/usr.sbin/crashinfo
Colin Percival
cperciva at FreeBSD.org
Fri Dec 3 16:21:13 UTC 2010
Author: cperciva
Date: Fri Dec 3 16:21:12 2010
New Revision: 216152
URL: http://svn.freebsd.org/changeset/base/216152
Log:
MFC r216077: Teach crashinfo(8) about the kern.bootfile sysctl.
Approved by: re (bz)
Modified:
stable/8/usr.sbin/crashinfo/crashinfo.sh
Directory Properties:
stable/8/usr.sbin/crashinfo/ (props changed)
Modified: stable/8/usr.sbin/crashinfo/crashinfo.sh
==============================================================================
--- stable/8/usr.sbin/crashinfo/crashinfo.sh Fri Dec 3 16:17:53 2010 (r216151)
+++ stable/8/usr.sbin/crashinfo/crashinfo.sh Fri Dec 3 16:21:12 2010 (r216152)
@@ -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