Re: bugreporting script - second try

From: David Ford (david@linux.com)
Date: Thu Jan 11 2001 - 17:28:25 EST


Matthias Juchem wrote:

> On Wed, 10 Jan 2001, Richard Torkar wrote:
>
> > I do not have any PPP, and no kdb installed on that machine, neither do I
> > have procinfo. Shouldn't it say N/A or not found instead of the above? The
> > ppp part is not true ;-).
>
> > Other thing I thought about was the Ctrl-D thingy when entering text.
> > What if ppl don't have any text to enter? Shouldn't is say on each line
> > that if you don't have anything to write then just write N/A and press
> > Ctrl-D? Because pressing Ctrl-D directly doesn't do any good.
>
> Could you please check the new version here:
>
> http://www.brightice.de/src/bugreport.sh

problem: exits top level shell if no filename is specified, annoyance
aesthetics: cat: /proc/scsi/scsi: No such file or directory, simple
aesthetics: GNU make 3.79.1,
problem: Linux libc5 C Library 5@..
aesthetics: Linux libc6 C Library 2.2,
problem: Linux C++ library 27@..
problem: Net-tools
problem: PPP file
aesthetics: .config, recommend stripping the ^CONFIG_ and =, combine all 'y'
and 'm'

example fix for C library:
   sed \
     '/C [lL]ibrary /!d; s/[^0-9]*\([0-9.]*\).*/\1/' \
     /lib/libc.so.6

example fix for C++ library:
   basename $(/usr/bin/ls -f /usr/i486-linux-libc5/lib/libg++.so.27 \
     |gawk '{print $NF}')

example fix for GNU make:
   make --version|sed '/version/!d; s/[^0-9]*\([0-9.]*\).*/\1/'

example fix for net-tools:
   1) hostname from sh-utils:
       hostname --version|sed '/GNU sh/!d; s/[^0-9]*\([0-9.]*\).*/\1/'
   2) ifconfig from net-tools:
      ifconfig --version 2>&1|sed '/net\-tools/!d; s/[^0-9]*\([0-9.]*\).*/\1/'

pppd requires a proper /etc/ppp/options file before printing the version, if
you have devfs and a disconnecting modem, i.e. usb modem, it must be
attached for the /dev entry or pppd will refuse to run.

I prefer using e2fsck to report the version:
   e2fsck -V 2>&1 |sed '/e2fsck/!d; s/e2fsck [^0-9]*\([0-9.]*\).*/\1/'

---
-d


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jan 15 2001 - 21:00:32 EST