shell: boot: switch to trusted commands
This commit is contained in:
parent
428ce212a5
commit
159b29c625
1 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue