summaryrefslogtreecommitdiffstats
path: root/firmware/target/hosted/rolo.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/hosted/rolo.c')
-rw-r--r--firmware/target/hosted/rolo.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/firmware/target/hosted/rolo.c b/firmware/target/hosted/rolo.c
index 432d69c86e..2aa3071c9a 100644
--- a/firmware/target/hosted/rolo.c
+++ b/firmware/target/hosted/rolo.c
@@ -91,8 +91,14 @@ int rolo_load(const char* filename)
lcd_remote_update();
#endif
+#ifdef PIVOT_ROOT
+#define EXECDIR PIVOT_ROOT
+#else
+#define EXECDIR ROOT_DIR
+#endif
+
char buf[256];
- snprintf(buf, sizeof(buf), "%s/%s", HOME_DIR, filename);
+ snprintf(buf, sizeof(buf), "%s/%s", EXECDIR, filename);
execl(buf, BOOTFILE, NULL);
rolo_error("Failed to launch!", strerror(errno));