|
|
@ -5,6 +5,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
#include "common/params.h" |
|
|
|
#include "common/params.h" |
|
|
|
#include "common/util.h" |
|
|
|
#include "common/util.h" |
|
|
|
|
|
|
|
#include "system/hardware/hw.h" |
|
|
|
|
|
|
|
|
|
|
|
class OpenpilotPrefix { |
|
|
|
class OpenpilotPrefix { |
|
|
|
public: |
|
|
|
public: |
|
|
@ -25,6 +26,10 @@ public: |
|
|
|
system(util::string_format("rm %s -rf", real_path.c_str()).c_str()); |
|
|
|
system(util::string_format("rm %s -rf", real_path.c_str()).c_str()); |
|
|
|
unlink(param_path.c_str()); |
|
|
|
unlink(param_path.c_str()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (getenv("COMMA_CACHE") == nullptr) { |
|
|
|
|
|
|
|
system(util::string_format("rm %s -rf", Path::download_cache_root().c_str()).c_str()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
system(util::string_format("rm %s -rf", Path::comma_home().c_str()).c_str()); |
|
|
|
system(util::string_format("rm %s -rf", msgq_path.c_str()).c_str()); |
|
|
|
system(util::string_format("rm %s -rf", msgq_path.c_str()).c_str()); |
|
|
|
unsetenv("OPENPILOT_PREFIX"); |
|
|
|
unsetenv("OPENPILOT_PREFIX"); |
|
|
|
} |
|
|
|
} |
|
|
|