#include <tzplatform_config.h>
// For compatibility, Using hard-coded path
-#define LEGACY_APPS_DIR "/opt/usr/apps"
#define LEGACY_CONTENTS_DIR "/opt/usr/media"
int main(int argc, char *argv[])
{
int r;
- const char *user_app;
const char *user_content;
- user_app = tzplatform_getenv(TZ_USER_APP);
- r = mount(user_app, LEGACY_APPS_DIR, NULL, MS_BIND, NULL);
- if (r < 0) {
- fprintf(stderr, "user app bind mount failed - %d\n", errno);
- return r;
- }
-
user_content = tzplatform_getenv(TZ_USER_CONTENT);
r = mount(user_content, LEGACY_CONTENTS_DIR, NULL, MS_BIND, NULL);
if (r < 0) {