summaryrefslogtreecommitdiffstats
path: root/common/environment.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/environment.c')
-rw-r--r--common/environment.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/common/environment.c b/common/environment.c
index 24487775d7..3f6f4b3a36 100644
--- a/common/environment.c
+++ b/common/environment.c
@@ -48,7 +48,19 @@ struct action_data {
};
#define PAD4(x) ((x + 3) & ~3)
-char *default_environment_path = "/dev/env0";
+#ifdef __BAREBOX__
+static char *default_environment_path = "/dev/env0";
+
+void default_environment_path_set(char *path)
+{
+ default_environment_path = path;
+}
+
+char *default_environment_path_get(void)
+{
+ return default_environment_path;
+}
+#endif
static int file_size_action(const char *filename, struct stat *statbuf,
void *userdata, int depth)