From d7767be24bdcc0101c2ba08c03600b9f3c608663 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 26 Jul 2022 22:54:28 +0200 Subject: user/shell: automatically execute binaries in /bin/ --- src/user/bootstrap/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/user/bootstrap') diff --git a/src/user/bootstrap/main.c b/src/user/bootstrap/main.c index 089fd68..9c08023 100644 --- a/src/user/bootstrap/main.c +++ b/src/user/bootstrap/main.c @@ -24,7 +24,7 @@ void _start(void) { MOUNT("/init/", tar_driver(&_initrd)); - void *init = tar_find("init.elf", 8, &_initrd, ~0) + 512; + void *init = tar_find("bin/init", 8, &_initrd, ~0) + 512; if (init) { _klogf("execing init.elf"); elf_exec(init); -- cgit v1.2.3