From: Michael Prokop Date: Thu, 31 Jan 2019 12:40:24 +0000 (+0100) Subject: Record uptime (/proc/uptime in `proc_uptime` and uptime(1) in file `uptime`) X-Git-Tag: v0.15.1~2 X-Git-Url: http://git.grml.org/?p=grml-hwinfo.git;a=commitdiff_plain;h=d77edf4830c5e33b0fa1db808e11e13de135e6fc Record uptime (/proc/uptime in `proc_uptime` and uptime(1) in file `uptime`) Thanks: Ralf Moll for the suggestion --- diff --git a/grml-hwinfo b/grml-hwinfo index 6d98829..382594f 100755 --- 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