aboutsummaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2013-08-13 07:57:39 +0200
committerLorenz Meier <lm@inf.ethz.ch>2013-08-13 07:57:39 +0200
commit0025e9ca909d4e1c8bc63841cd0e61265a328e30 (patch)
tree58c62924dc35d4ffc2b8a279f019cb76d5e2f246 /src/modules
parentda9d9781f999361009b2c7b8e9b18d0d500c072c (diff)
downloadpx4-firmware-0025e9ca909d4e1c8bc63841cd0e61265a328e30.tar.gz
px4-firmware-0025e9ca909d4e1c8bc63841cd0e61265a328e30.tar.bz2
px4-firmware-0025e9ca909d4e1c8bc63841cd0e61265a328e30.zip
Hotfix: Copy a current version of the log conversion tools to each log directory
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/sdlog2/sdlog2.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/modules/sdlog2/sdlog2.c b/src/modules/sdlog2/sdlog2.c
index 3713e0b30..0da8ec568 100644
--- a/src/modules/sdlog2/sdlog2.c
+++ b/src/modules/sdlog2/sdlog2.c
@@ -604,6 +604,15 @@ int sdlog2_thread_main(int argc, char *argv[])
errx(1, "unable to create logging folder, exiting.");
}
+ const char *converter_in = "/etc/logging/log_converter.zip";
+ char* converter_out = malloc(200);
+ sprintf(converter_out, "%s/log_converter.zip", folder_path);
+
+ if (file_copy(converter_in, converter_out)) {
+ errx(1, "unable to copy conversion scripts, exiting.");
+ }
+ free(converter_out);
+
/* only print logging path, important to find log file later */
warnx("logging to directory: %s", folder_path);