From d6bdeed38f293b1966bf285d5c678dac32a63a18 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Thu, 26 Mar 2020 16:01:06 +0100 Subject: [PATCH] report_dump: replace noux by plain bash This patch also introduces the use of the RTC for creating directory names and increases the rate of snapshot creation from 10 seconds to one minute to make sure that directories are named differently when reading the RTC clock at granularity of minutes. Issue #3696 --- repos/ports/recipes/pkg/report_dump/archives | 3 +- repos/ports/recipes/pkg/report_dump/runtime | 111 +++++++++++++++---- 2 files changed, 89 insertions(+), 25 deletions(-) diff --git a/repos/ports/recipes/pkg/report_dump/archives b/repos/ports/recipes/pkg/report_dump/archives index 861ef1d96f..3535ce1a78 100644 --- a/repos/ports/recipes/pkg/report_dump/archives +++ b/repos/ports/recipes/pkg/report_dump/archives @@ -1,7 +1,8 @@ -_/src/noux _/src/bash-minimal _/src/coreutils _/src/libc _/src/posix _/src/init _/src/vfs +_/src/vfs_pipe +_/src/fs_rom diff --git a/repos/ports/recipes/pkg/report_dump/runtime b/repos/ports/recipes/pkg/report_dump/runtime index c2e5ff4b29..c37fc60bc0 100644 --- a/repos/ports/recipes/pkg/report_dump/runtime +++ b/repos/ports/recipes/pkg/report_dump/runtime @@ -1,45 +1,108 @@ - + + - - - - - - - - - - while true; do - export VERSION=`printf "%(%T)T"` - mkdir "/rw/$VERSION" - cp -r /report/* "/rw/$VERSION/" - sleep 10 - done - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + while true; do + export VERSION=`printf "%(%T)T"` + mkdir "/rw/$VERSION" + cp -r /report/* "/rw/$VERSION/" + sleep 60 + done + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + +