diff options
| author | Colin Percival <cperciva@FreeBSD.org> | 2010-12-03 16:21:12 +0000 |
|---|---|---|
| committer | Colin Percival <cperciva@FreeBSD.org> | 2010-12-03 16:21:12 +0000 |
| commit | 3582672c174e47d453afb29553d9b0c572163b91 (patch) | |
| tree | 7f99adbde3fad7b14eefdb062bce631f45d27574 /usr.sbin | |
| parent | 1c99e2e6b70bcaba25eed35ae6d1968cfaf08004 (diff) | |
Notes
Diffstat (limited to 'usr.sbin')
| -rwxr-xr-x | usr.sbin/crashinfo/crashinfo.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/crashinfo/crashinfo.sh b/usr.sbin/crashinfo/crashinfo.sh index 60f036014c44..89013a27f64e 100755 --- a/usr.sbin/crashinfo/crashinfo.sh +++ b/usr.sbin/crashinfo/crashinfo.sh @@ -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 |
