Messages in this thread | | | From | "Ulrich Windl" <> | Date | Tue, 19 Mar 1996 14:58:32 +0100 | Subject | Debugging 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 # ...
| |