Return to send_dmesg CVS log | 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, 10 months ago) by andrew
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