[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.7, Tue Jun 29 20:34:54 2010 UTC (13 years, 10 months ago) by andrew
Branch: MAIN
Changes since 1.6: +3 -1 lines

output when we send it.

#!/bin/sh
# $AFresh1: send_dmesg,v 1.7 2010/06/29 20:34:54 andrew Exp $

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

echo Sent dmesg to root