=================================================================== RCS file: /cvs/openbsd/update_openbsd/send_dmesg,v retrieving revision 1.1 retrieving revision 1.9 diff -u -r1.1 -r1.9 --- openbsd/update_openbsd/send_dmesg 2008/11/21 21:54:41 1.1 +++ openbsd/update_openbsd/send_dmesg 2012/04/19 05:05:38 1.9 @@ -1,7 +1,26 @@ #!/bin/sh -# $RedRiver$ +# $AFresh1: send_dmesg,v 1.8 2010/11/01 02:20:17 andrew Exp $ -SUBJECT=`sysctl -n hw.vendor` -SUBJECT="${SUBJECT} `sysctl -n hw.product`" -#echo ${SUBJECT} -dmesg | mail -s "${SUBJECT}" andrew@rraz.net +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