summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-09-25 14:32:32 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-09-25 14:32:32 +0200
commit2a286ea2083d4cd4857446ddf819403d9a95f79e (patch)
tree187c946d0ebbdee168932f52c7dc541f68c6e6dc /common
parent97cf2a980520ce6a58e58febc665227ae945ab06 (diff)
downloadbarebox-2a286ea2083d4cd4857446ddf819403d9a95f79e.tar.gz
barebox-2a286ea2083d4cd4857446ddf819403d9a95f79e.tar.xz
execute /env/bin/init instead of /env/init
Diffstat (limited to 'common')
-rw-r--r--common/startup.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/common/startup.c b/common/startup.c
index 7867bd1a50..0f63271880 100644
--- a/common/startup.c
+++ b/common/startup.c
@@ -126,8 +126,7 @@ void start_uboot (void)
register_default_env();
mount("none", "ramfs", "/");
- mkdir("/dev");
- mkdir("/env");
+ mkdir("/dev",0);
mount("none", "devfs", "/dev");
#ifdef CONFIG_CMD_ENVIRONMENT
@@ -138,9 +137,9 @@ void start_uboot (void)
#endif
}
#endif
- if (!stat("/env/init", &s)) {
- printf("running /env/init\n");
- run_command("sh /env/init", 0);
+ if (!stat("/env/bin/init", &s)) {
+ printf("running /env/bin/init\n");
+ run_command("source /env/bin/init", 0);
}
/* main_loop() can return to retry autoboot, if so just run it again. */