shell: boot: switch to trusted commands

tags/0.1.0
S.J.R. van Schaik 8 years ago
parent 428ce212a5
commit 159b29c625
  1. 9
      source/shell/boot.c

@ -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…
Cancel
Save