version 1.9, 2012/04/19 05:05:38 |
version 1.10, 2014/11/08 20:32:08 |
|
|
#!/bin/sh |
#!/bin/sh |
# $AFresh1: send_dmesg,v 1.8 2010/11/01 02:20:17 andrew Exp $ |
# $AFresh1: send_dmesg,v 1.9 2012/04/19 04:05:38 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` |
|
|
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 |