lkml.org 
[lkml]   [2001]   [Jan]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: bugreporting script - second try
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/
\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.094 / U:2.292 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site