Re: bugreporting script - second try

From: Rafael E. Herrera (raffo@neuronet.pitt.edu)
Date: Thu Jan 11 2001 - 09:14:20 EST


Matthias Juchem wrote:
> http://www.brightice.de/src/bugreport.sh

I have a suggestion, there is a kernel patch to add a config.gz entry in
the /proc fs. It reflects the configuration used in building the running
kernel, which may differ from the one you have in /usr/src/linux. It's
part of the suse distribution. The attached patch will use it, although
you may want to add code to ask the user which one to use.

--- bugreport.sh Thu Jan 11 09:09:00 2001
+++ bugreport.sh_orig Thu Jan 11 08:53:21 2001
@@ -478,16 +478,11 @@
 
 
     # kernel config
- if [ -f "/proc/config.gz" ]
+ if [ -f "$krn_srcdir/.config" ]
     then
- dot_config=`gzip -d < /proc/config.gz|grep -v "^#"|grep CONFIG`
+ dot_config=`cat $krn_srcdir/.config|grep -v "^#"|grep CONFIG`
     else
- if [ -f "$krn_srcdir/.config" ]
- then
- dot_config=`cat $krn_srcdir/.config|grep -v "^#"|grep
CONFIG`
- else
- dot_config="not found"
- fi
+ dot_config="not found"
     fi
 }

-- 
     Rafael
-
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:30 EST