diff --git a/source/shell/boot.c b/source/shell/boot.c index fe9464b..b5e7565 100644 --- a/source/shell/boot.c +++ b/source/shell/boot.c @@ -4,12 +4,19 @@ #include #include +#include #include #include extern struct mufs *mufs; +extern struct shell user_shell; + +struct cmd safe_cmds[] = { + { "booting", "", shell_boot }, + { NULL, NULL, NULL }, +}; int shell_prepare(struct console *con, size_t argc, const char **argv) { @@ -46,6 +53,8 @@ int shell_prepare(struct console *con, size_t argc, const char **argv) return -1; } + user_shell.cmds = safe_cmds; + return 0; }