Return to send_dmesg CVS log | Up to [local] / openbsd / update_openbsd |
File: [local] / openbsd / update_openbsd / send_dmesg (download)
Revision 1.9, Thu Apr 19 04:05:38 2012 UTC (12 years, 2 months ago) by andrew
Add more information to be sent It does require root permissions for some, but it's good info. |
#!/bin/sh # $AFresh1: send_dmesg,v 1.9 2012/04/19 04:05:38 andrew Exp $ SUBJECT=`sysctl -n hw.vendor hw.product hw.version 2> /dev/null | xargs` tmpfile=`mktemp` [ -z "$SUBJECT" ] && SUBJECT=unknown cat /var/run/dmesg.boot > $tmpfile echo \$ usbdevs -v | tee -a $tmpfile usbdevs -v >> $tmpfile echo \$ pcidump | tee -a $tmpfile pcidump >> $tmpfile echo \$ sysctl hw | tee -a $tmpfile sysctl hw >> $tmpfile echo \$ mixerctl | tee -a $tmpfile mixerctl >> $tmpfile echo \$ audioctl | tee -a $tmpfile audioctl >> $tmpfile echo \$ apm | tee -a $tmpfile apm >> $tmpfile echo \$ md5 -ttt | tee -a $tmpfile md5 -ttt >> $tmpfile mail -s "dmesg for ${SUBJECT}" root < $tmpfile rm -f $tmpfile echo Sent dmesg to root