diff options
author | dzwdz | 2021-10-21 06:44:03 +0000 |
---|---|---|
committer | dzwdz | 2021-10-21 06:44:03 +0000 |
commit | 6d3960c8fdd361af32f88e4fb1e2deb892166932 (patch) | |
tree | 921d9b9976a36ff702b5a3f4616aa26988c2b149 /src/init | |
parent | d477902853ff07e8aa80fcc10307446680e28749 (diff) |
init/shell: add a `shadow` command for null mounts
Diffstat (limited to 'src/init')
-rw-r--r-- | src/init/shell.c | 2 |
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")) { |