summaryrefslogtreecommitdiffstats
path: root/scripts/bareboxenv.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-11-29 20:22:58 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-11-29 20:23:04 +0100
commit1533521bff4121dcd8dc37ef34fd09fc6a5018fb (patch)
treecaeca762cedb4772b651b23d4e92853008633a72 /scripts/bareboxenv.c
parent5a9d53c47e3c6ce5bc7d38c60501a37ce2c2b276 (diff)
downloadbarebox-1533521bff4121dcd8dc37ef34fd09fc6a5018fb.tar.gz
barebox-1533521bff4121dcd8dc37ef34fd09fc6a5018fb.tar.xz
loadenv: allow more fine grained environment loading
This implements two new options for the loadenv command: -s: removes (scrubs) old directory contents to be able to create a fresh environment from for example /dev/defaultenv -n: no overwrite. Do not overwrite existing files. This allows to keep parts of the old environment. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts/bareboxenv.c')
-rw-r--r--scripts/bareboxenv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/bareboxenv.c b/scripts/bareboxenv.c
index 5fdc62e238..707d63dd81 100644
--- a/scripts/bareboxenv.c
+++ b/scripts/bareboxenv.c
@@ -191,7 +191,7 @@ int main(int argc, char *argv[])
if (load) {
if (verbose)
printf("loading env from file %s to %s\n", filename, dirname);
- envfs_load(filename, dirname);
+ envfs_load(filename, dirname, 0);
}
if (save) {
if (verbose)