projects
/
grml-hwinfo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
225024a
)
Record uptime (/proc/uptime in `proc_uptime` and uptime(1) in file `uptime`)
author
Michael Prokop
<mika@grml.org>
Thu, 31 Jan 2019 12:40:24 +0000
(13:40 +0100)
committer
Michael Prokop
<mika@grml.org>
Thu, 31 Jan 2019 12:41:10 +0000
(13:41 +0100)
Thanks: Ralf Moll for the suggestion
grml-hwinfo
patch
|
blob
|
history
diff --git
a/grml-hwinfo
b/grml-hwinfo
index
6d98829
..
382594f
100755
(executable)
--- a/
grml-hwinfo
+++ b/
grml-hwinfo
@@
-211,11
+211,13
@@
cd "${OUTDIR}" || exit 1
# proc stuff
for i in cpuinfo interrupts cmdline devices dma fb iomem ioports \
- mdstat meminfo modules mtrr pci version ; do
+ mdstat meminfo modules mtrr pci
uptime
version ; do
[ -r /proc/$i ] && cat /proc/$i > proc_$i
done
exectest sysdump && sysdump > ./sysdump 2>./sysdump.error
+ exectest uptime && uptime > ./uptime 2>./uptime.error
+
# log
dmesg > dmesg.cur