[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.1 and 1.11

version 1.1, 2008/11/21 21:54:41 version 1.11, 2017/12/17 02:28:33
Line 1 
Line 1 
 #!/bin/sh  #!/bin/sh
 # $RedRiver$  # $AFresh1: send_dmesg,v 1.10 2014/11/08 20:32:08 andrew Exp $
   
 SUBJECT=`sysctl -n hw.vendor`  SUBJECT=`sysctl -n hw.vendor hw.product hw.version 2> /dev/null | xargs`
 SUBJECT="${SUBJECT} `sysctl -n hw.product`"  tmpfile=`mktemp`
 #echo ${SUBJECT}  [ -z "$SUBJECT" ] && SUBJECT=unknown
 dmesg | mail -s "${SUBJECT}" andrew@rraz.net  cat /var/run/dmesg.boot >  $tmpfile
   echo \$ usbdevs -v      |  tee -a $tmpfile
   usbdevs -v              >> $tmpfile
   echo \$ pcidump         |  tee -a $tmpfile
   doas -n 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
   cp $tmpfile dmesg.last
   rm -f $tmpfile
   
   echo Sent dmesg to root

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.11

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