=================================================================== RCS file: /cvs/openbsd/update_openbsd/send_dmesg,v retrieving revision 1.4 retrieving revision 1.7 diff -u -r1.4 -r1.7 --- openbsd/update_openbsd/send_dmesg 2009/12/10 19:35:26 1.4 +++ openbsd/update_openbsd/send_dmesg 2010/06/29 21:34:54 1.7 @@ -1,6 +1,9 @@ #!/bin/sh -# $RedRiver: send_dmesg,v 1.3 2009/10/29 23:33:15 andrew Exp $ +# $AFresh1: send_dmesg,v 1.6 2010/02/10 20:57:07 andrew Exp $ SUBJECT=`sysctl -n hw.vendor hw.product hw.version 2> /dev/null | xargs` +[ -z "$SUBJECT" ] && SUBJECT=unknown #echo ${SUBJECT} -( dmesg; sysctl hw.sensors ) | mail -s "${SUBJECT}" root +( dmesg; sysctl hw.sensors ) | mail -s "dmesg for ${SUBJECT}" root + +echo Sent dmesg to root