From d77edf4830c5e33b0fa1db808e11e13de135e6fc Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Thu, 31 Jan 2019 13:40:24 +0100 Subject: [PATCH] Record uptime (/proc/uptime in `proc_uptime` and uptime(1) in file `uptime`) Thanks: Ralf Moll for the suggestion --- grml-hwinfo | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.1.4