diff options
Diffstat (limited to 'src/user/app')
-rw-r--r-- | src/user/app/init/init.c | 9 | ||||
-rw-r--r-- | src/user/app/shell/shell.c | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/user/app/init/init.c b/src/user/app/init/init.c index 9528a28..61fb27b 100644 --- a/src/user/app/init/init.c +++ b/src/user/app/init/init.c @@ -43,6 +43,15 @@ int main(void) { freopen("/kdev/com1", "a+", stderr); printf("[init] stage 2, main at %p, teststr at %p\n", &main, teststr); + MOUNT_AT("/") { + fs_dirinject2((const char*[]){ + "/fake/b/c", + "/fake/c", + "/faker", + NULL + }); + } + MOUNT_AT("/keyboard") { MOUNT_AT("/") { fs_whitelist((const char*[]){"/kdev/ps2/kb", NULL}); } ps2_drv(); diff --git a/src/user/app/shell/shell.c b/src/user/app/shell/shell.c index 8e13029..e9293bc 100644 --- a/src/user/app/shell/shell.c +++ b/src/user/app/shell/shell.c @@ -61,7 +61,7 @@ void run_args(int argc, char **argv, struct redir *redir) { /* if (!(3 <= argc && !strcmp(argv[2], "raw"))) { if (!fork2_n_mount("/")) { - fs_dir_inject(argv[1]); + fs_dirinject(argv[1]); exit(1); } } |