#!/bin/bash # Generate a summary of system information. # # ---------------------------------------------------------------------- # TODO: S.M.A.R.T., hdparm # # ---------------------------------------------------------------------- # Changelog # ---------------------------------------------------------------------- # Wed Feb 2 17:03:35 PST 2005 # - Added a few features from Carla Schroeder's NewsForge article and # other sources # http://hardware.newsforge.com/hardware/05/01/25/2034227.shtml?tid=126&tid=125 # - /proc/ide/ data. # - /proc/sys/dev/cdrom/info # CDROM info # - /proc/scsi/scsi # SCSI info # - /proc/tty/drivers/serial Thansk to Rick Moen. # # - Fixed a patch goof. # - Removed folding from 'tabout' OK, it's going to go over 80 colums. # Deal with it. # # ---------------------------------------------------------------------- # Note that some commands / files require root access. 'sudo' is used # to provide this, you can scan this file for sudo instances to # determine where it goes root. # ---------------------------------------------------------------------- PATH=/bin:/usr/bin:/sbin:/usr/sbin function tabout () { sed -e '/^/s// /'; } function spaceout () { sed -e '/^/s// /'; } # init sudo: sudo -v cat </dev/null 2>&1 && \ hwinfo --reallyall | tabout || echo "'hwinfo' not found." | tabout ) ------------------------------------------------------------------------ This is an automatically created summary. The command is "$( basename $0 )". Written by Karsten M. Self , (c) 2002-2006 This program may be freely distributed and modified, with attribution and the following disclaimer. This program comes with NO WARRANTY and NO LIABILITY FOR DAMAGES. Revision information: Author: karsten Version: 1.5 Last revised: 2005/02/03 01:15:19 EOF