Hi Terry,
I had a look at the source of hardinfo(1) to see what would make it
happy.
$ hardinfo -h
Usage:
hardinfo [OPTION...] - System Profiler and Benchmark tool
Help Options:
-h, --help Show help options
Application Options:
-r, --generate-report creates a report and prints to standard output
-f, --report-format chooses a report format (text, html)
-l, --list-modules lists modules
-m, --load-module specify module to load
-a, --autoload-deps automatically load module dependencies
-v, --version shows program version and quit
$ hardinfo -l
Modules:
File Name Name Version
computer.so Computer 0.5.1
devices.so Devices 0.5.1
network.so Network 0.5.1
benchmark.so Benchmarks 0.5.1
$
$ hardinfo -m computer.so
*** Error: Module "Computer" depends on module "devices.so".
Aborted
$ hardinfo -m devices.so
*** Error: Module "Devices" depends on module "computer.so".
Aborted
$ hardinfo -m computer.so -m devices.so
Computer
Summary
...
$ hardinfo -a -m computer.so
Computer
Summary
...
$
So you can give multiple -m options, ensuring dependencies are resolved,
or give -a for hardinfo to sort it out.
If you want everything except benchmarks and don't want to miss out new
ones that appear then strip benchmarks from the -l output and feed the
rest back as -m options.
hardinfo $(hardinfo -l |
awk '$1 ~ /\.so$/ && $1 != "benchmark.so" {print "-m", $1}')
To get the source of a package to poke around yourself, do
mkdir hardinfo && cd hardinfo
apt-get source hardinfo
ls
Cheers,
Ralph.
--
Next meeting: Blandford Forum, Wednesday 2011-03-02 20:00
Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/
How to Report Bugs Effectively: http://goo.gl/4Xue