diff options
Diffstat (limited to 'firmware/target/hosted/rolo.c')
-rw-r--r-- | firmware/target/hosted/rolo.c | 8 |
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) | |||
91 | lcd_remote_update(); | 91 | lcd_remote_update(); |
92 | #endif | 92 | #endif |
93 | 93 | ||
94 | #ifdef PIVOT_ROOT | ||
95 | #define EXECDIR PIVOT_ROOT | ||
96 | #else | ||
97 | #define EXECDIR ROOT_DIR | ||
98 | #endif | ||
99 | |||
94 | char buf[256]; | 100 | char buf[256]; |
95 | snprintf(buf, sizeof(buf), "%s/%s", HOME_DIR, filename); | 101 | snprintf(buf, sizeof(buf), "%s/%s", EXECDIR, filename); |
96 | execl(buf, BOOTFILE, NULL); | 102 | execl(buf, BOOTFILE, NULL); |
97 | 103 | ||
98 | rolo_error("Failed to launch!", strerror(errno)); | 104 | rolo_error("Failed to launch!", strerror(errno)); |