version 1.7, 2010/06/29 21:34:54 |
version 1.8, 2010/11/01 03:20:17 |
|
|
#!/bin/sh |
#!/bin/sh |
# $AFresh1: send_dmesg,v 1.6 2010/02/10 20:57:07 andrew Exp $ |
# $AFresh1: send_dmesg,v 1.7 2010/06/29 20:34:54 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` |
[ -z "$SUBJECT" ] && SUBJECT=unknown |
[ -z "$SUBJECT" ] && SUBJECT=unknown |
#echo ${SUBJECT} |
#echo ${SUBJECT} |
( dmesg; sysctl hw.sensors ) | mail -s "dmesg for ${SUBJECT}" root |
( cat /var/run/dmesg.boot; sysctl hw.sensors ) | mail -s "dmesg for ${SUBJECT}" root |
|
|
echo Sent dmesg to root |
echo Sent dmesg to root |