summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordzwdz2021-10-21 06:44:03 +0000
committerdzwdz2021-10-21 06:44:03 +0000
commit6d3960c8fdd361af32f88e4fb1e2deb892166932 (patch)
tree921d9b9976a36ff702b5a3f4616aa26988c2b149 /src
parentd477902853ff07e8aa80fcc10307446680e28749 (diff)
init/shell: add a `shadow` command for null mounts
Diffstat (limited to 'src')
-rw-r--r--src/init/shell.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/init/shell.c b/src/init/shell.c
index 40283f8..7cb8a8c 100644
--- a/src/init/shell.c
+++ b/src/init/shell.c
@@ -84,6 +84,8 @@ void shell_loop(void) {
cmd_cat(files[i]);
printf("\n");
}
+ } else if (!strcmp(cmd, "shadow")) {
+ _syscall_mount(-1, args, strlen(args));
} else if (!strcmp(cmd, "exit")) {
_syscall_exit(0);
} else if (!strcmp(cmd, "fork")) {