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

Diff for /openbsd/update_openbsd/send_dmesg between version 1.5 and 1.9

version 1.5, 2010/01/11 18:58:53 version 1.9, 2012/04/19 05:05:38
Line 1 
Line 1 
 #!/bin/sh  #!/bin/sh
 # $RedRiver: send_dmesg,v 1.4 2009/12/10 19:35:26 andrew Exp $  # $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`  SUBJECT=`sysctl -n hw.vendor hw.product hw.version 2> /dev/null | xargs`
   tmpfile=`mktemp`
 [ -z "$SUBJECT" ] && SUBJECT=unknown  [ -z "$SUBJECT" ] && SUBJECT=unknown
 #echo ${SUBJECT}  cat /var/run/dmesg.boot >  $tmpfile
 ( dmesg; sysctl hw.sensors )  | mail -s "dmesg for ${SUBJECT}" root  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

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.9

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