version 1.9, 2012/04/19 05:05:38 |
version 1.11, 2017/12/17 02:28:33 |
|
|
#!/bin/sh |
#!/bin/sh |
# $AFresh1: send_dmesg,v 1.8 2010/11/01 02:20:17 andrew Exp $ |
# $AFresh1: send_dmesg,v 1.10 2014/11/08 20:32:08 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` |
tmpfile=`mktemp` |
|
|
echo \$ usbdevs -v | tee -a $tmpfile |
echo \$ usbdevs -v | tee -a $tmpfile |
usbdevs -v >> $tmpfile |
usbdevs -v >> $tmpfile |
echo \$ pcidump | tee -a $tmpfile |
echo \$ pcidump | tee -a $tmpfile |
pcidump >> $tmpfile |
doas -n pcidump >> $tmpfile |
echo \$ sysctl hw | tee -a $tmpfile |
echo \$ sysctl hw | tee -a $tmpfile |
sysctl hw >> $tmpfile |
sysctl hw >> $tmpfile |
echo \$ mixerctl | tee -a $tmpfile |
echo \$ mixerctl | tee -a $tmpfile |
|
|
md5 -ttt >> $tmpfile |
md5 -ttt >> $tmpfile |
|
|
mail -s "dmesg for ${SUBJECT}" root < $tmpfile |
mail -s "dmesg for ${SUBJECT}" root < $tmpfile |
|
cp $tmpfile dmesg.last |
rm -f $tmpfile |
rm -f $tmpfile |
|
|
echo Sent dmesg to root |
echo Sent dmesg to root |