[BACK]Return to send_dmesg CVS log [TXT][DIR] Up to [local] / openbsd / update_openbsd

File: [local] / openbsd / update_openbsd / send_dmesg (download)

Revision 1.4, Thu Dec 10 19:35:26 2009 UTC (14 years, 5 months ago) by andrew
Branch: MAIN
Changes since 1.3: +2 -2 lines

make the dmesg go to root, that way it is delivered based on aliases

#!/bin/sh
# $RedRiver: send_dmesg,v 1.3 2009/10/29 23:33:15 andrew Exp $

SUBJECT=`sysctl -n hw.vendor hw.product hw.version 2> /dev/null | xargs`
#echo ${SUBJECT}
( dmesg; sysctl hw.sensors )  | mail -s "${SUBJECT}" root