shell: boot: switch to trusted commands

This commit is contained in:
S.J.R. van Schaik 2017-07-27 13:17:31 +02:00
parent 428ce212a5
commit 159b29c625

View file

@ -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;
}