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

Annotation of openbsd/update_openbsd/send_dmesg, Revision 1.10

1.1       andrew      1: #!/bin/sh
1.10    ! andrew      2: # $AFresh1: send_dmesg,v 1.9 2012/04/19 04:05:38 andrew Exp $
1.1       andrew      3:
1.2       andrew      4: SUBJECT=`sysctl -n hw.vendor hw.product hw.version 2> /dev/null | xargs`
1.9       andrew      5: tmpfile=`mktemp`
1.5       andrew      6: [ -z "$SUBJECT" ] && SUBJECT=unknown
1.9       andrew      7: cat /var/run/dmesg.boot >  $tmpfile
                      8: echo \$ usbdevs -v      |  tee -a $tmpfile
                      9: usbdevs -v              >> $tmpfile
                     10: echo \$ pcidump         |  tee -a $tmpfile
                     11: pcidump                 >> $tmpfile
                     12: echo \$ sysctl hw       |  tee -a $tmpfile
                     13: sysctl hw               >> $tmpfile
                     14: echo \$ mixerctl        |  tee -a $tmpfile
                     15: mixerctl                >> $tmpfile
                     16: echo \$ audioctl        |  tee -a $tmpfile
                     17: audioctl                >> $tmpfile
                     18: echo \$ apm             |  tee -a $tmpfile
                     19: apm                     >> $tmpfile
                     20: echo \$ md5 -ttt        |  tee -a $tmpfile
                     21: md5 -ttt                >> $tmpfile
                     22:
                     23: mail -s "dmesg for ${SUBJECT}" root < $tmpfile
1.10    ! andrew     24: cp $tmpfile dmesg.last
1.9       andrew     25: rm -f $tmpfile
1.7       andrew     26:
                     27: echo Sent dmesg to root

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>