Subject: Re: Tracking Prevalance of Bugs
To: Curt Sampson <cjs@cynic.net>
From: Andrew Brown <atatat@atatdot.net>
List: current-users
Date: 05/06/1999 19:47:27
>Do you have some code to do this? I don't think any changes to the
>distribution are necessary right off; just adding a `dmesg | mail'
>line to /etc/rc.local is a pretty easy change from the user's side.
the code should be easy enough to whip up, but i'd like to suggest
that it *only* send the code out if the /etc/motd got changed (because
of a new kernel build :) so that whoever's gonna be collecting this
info doesn't get *indundated* by identical emails every time a
volunteer's laptop unwittingly reboots.
here's a simple patch. :)
--------8<--------8<--------8<--------8<--------8<--------
--- rc-orig Wed Apr 14 07:05:28 1999
+++ rc Thu May 6 19:46:06 1999
@@ -370,7 +370,12 @@
sysctl -n kern.version | sed 1q > $T
echo "" >> $T
sed '1,/^$/d' < /etc/motd >> $T
- cmp -s $T /etc/motd || cp $T /etc/motd
+ if cmp -s $T /etc/motd ; then
+ cp $T /etc/motd
+ if checkyesno email_dmesg; then
+ dmesg | mail -s "dmesg output" bgrayson+dmesg@ece.utexas.edu
+ fi
+ fi
rm -f $T
fi
--------8<--------8<--------8<--------8<--------8<--------
--
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org * "ah! i see you have the internet
twofsonet@graffiti.com (Andrew Brown) that goes *ping*!"
andrew@crossbar.com * "information is power -- share the wealth."