|
|
|
@ -4,12 +4,19 @@ |
|
|
|
|
|
|
|
|
|
#include <console.h> |
|
|
|
|
#include <macros.h> |
|
|
|
|
#include <shell.h> |
|
|
|
|
|
|
|
|
|
#include <fs/mufs.h> |
|
|
|
|
|
|
|
|
|
#include <shell/boot.h> |
|
|
|
|
|
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|