lkml.org 
[lkml]   [1996]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectDebugging support
I just had an idea about problem reports:
Maybe we can include a small script to create some important data
about the current Linux configuration to help people with problem
reports.

Rough idea (fully untested) /usr/src/linux/scripts/configinfo:
#!/bin/bash
# Print useful information about current system configuration
# (c) 1996 Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de>
# Distributed under GPL; see file COPYING for details
cd /usr/src/linux || exit 1

# string file
config_item()
{
if [ -f "$2" ]; then
echo "### ${1}:"
cat "$2"
else
echo "### $1 not available"
fi
}

config_item "Linux version" /proc/version
config_item "CPU info" /proc/cpuinfo
config_item "Memory" /proc/meminfo
config_item "PCI devices:" /proc/pci
config_item "Drivers" /proc/devices
config_item "Filesystems" /proc/filesystems
config_item "Interrupts" /proc/interrupts
config_item "I/O ports" /proc/ioports
config_item "Modules" /proc/modules
config_item "Mounted filesystems" /proc/mounts
config_item "Kernel configuration" .config
# ...
if [ -r /proc/scsi ]; then
for f in `ls -R /proc/scsi`
do
[ -f "$f" ] && config_item "$f" "$f"
done
fi
# ...


\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.038 / U:0.728 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site