[BACK]Return to send_dmesg CVS log [TXT][DIR] Up to [local] / openbsd / update_openbsd

File: [local] / openbsd / update_openbsd / send_dmesg (download)

Revision 1.8, Mon Nov 1 02:20:17 2010 UTC (13 years, 6 months ago) by andrew
Branch: MAIN
Changes since 1.7: +2 -2 lines

use dmesg.boot instead of dmesg because it is more likely what we want.

#!/bin/sh
# $AFresh1: send_dmesg,v 1.8 2010/11/01 02:20:17 andrew Exp $

SUBJECT=`sysctl -n hw.vendor hw.product hw.version 2> /dev/null | xargs`
[ -z "$SUBJECT" ] && SUBJECT=unknown
#echo ${SUBJECT}
( cat /var/run/dmesg.boot; sysctl hw.sensors )  | mail -s "dmesg for ${SUBJECT}" root

echo Sent dmesg to root