version 1.3, 2009/10/30 00:33:15 |
version 1.6, 2010/02/10 20:57:07 |
|
|
#!/bin/sh |
#!/bin/sh |
# $RedRiver: send_dmesg,v 1.2 2009/02/17 20:06:34 andrew Exp $ |
# $AFresh1: send_dmesg,v 1.4 2009/12/10 19:35:26 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 |
#echo ${SUBJECT} |
#echo ${SUBJECT} |
( dmesg; sysctl hw.sensors ) | mail -s "${SUBJECT}" andrew@rraz.net |
( dmesg; sysctl hw.sensors ) | mail -s "dmesg for ${SUBJECT}" root |