From 6d3960c8fdd361af32f88e4fb1e2deb892166932 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 21 Oct 2021 06:44:03 +0000 Subject: init/shell: add a `shadow` command for null mounts --- src/init/shell.c | 2 ++ 1 file changed, 2 insertions(+) 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")) { -- cgit v1.2.3