projects
/
grml-hwinfo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
685c3ec
)
Improve /proc/ide code
author
Michael Prokop
<mika@grml.org>
Mon, 11 Jun 2007 10:11:16 +0000
(12:11 +0200)
committer
Michael Prokop
<mika@grml.org>
Mon, 11 Jun 2007 10:11:16 +0000
(12:11 +0200)
grml-hwinfo
patch
|
blob
|
history
diff --git
a/grml-hwinfo
b/grml-hwinfo
index
8f428aa
..
29c898e
100755
(executable)
--- a/
grml-hwinfo
+++ b/
grml-hwinfo
@@
-94,7
+94,7
@@
mkdir info || exit -1
[ -r /proc/bus/pnp ] && lspnp > lspnp
[ -r /proc/bus/usb ] && lsusb > lsusb
cat /proc/partitions > partitions
- [ -r /proc/ide/ide?/hd?/geometry ] && grep . /proc/ide/ide?/hd?/geometry /dev/null | sed -e 's#/proc/ide/ide./##' > proc_ide
+ find /proc/ide/ -name geometry -exec grep . {} \; > proc_ide 2>/dev/null
df -h > df 2>/dev/null
for i in free lsmod mount lsdev ; do
exectest $i && $i > $i