diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-11-17 15:42:57 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-11-20 10:30:24 +0100 |
commit | bac3d6df3562c814e5892f63225b94e2fedd4684 (patch) | |
tree | 773afea1364e51c9bf5ee8cca9f4de12b3829e26 /cpukit/libmisc/shell/main_halt.c | |
parent | Ensure security of default user environment (diff) | |
download | rtems-bac3d6df3562c814e5892f63225b94e2fedd4684.tar.bz2 |
shell: Rename HALT to SHUTDOWN command
Use a normal command for shutdown via exit().
Diffstat (limited to '')
-rw-r--r-- | cpukit/libmisc/shell/main_halt.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/cpukit/libmisc/shell/main_halt.c b/cpukit/libmisc/shell/main_halt.c index 4db513d212..a7a7d2dc40 100644 --- a/cpukit/libmisc/shell/main_halt.c +++ b/cpukit/libmisc/shell/main_halt.c @@ -19,20 +19,21 @@ #include <rtems/shell.h> #include "internal.h" -static int rtems_shell_main_halt( +static int rtems_shell_main_shutdown( int argc __attribute__((unused)), char *argv[] __attribute__((unused)) ) { + fprintf(stdout, "System shutting down at user request\n"); exit(0); return 0; } -rtems_shell_cmd_t rtems_shell_HALT_Command = { - "halt", /* name */ - "halt", /* usage */ +rtems_shell_cmd_t rtems_shell_SHUTDOWN_Command = { + "shutdown", /* name */ + "shutdown", /* usage */ "rtems", /* topic */ - rtems_shell_main_halt, /* command */ + rtems_shell_main_shutdown, /* command */ NULL, /* alias */ NULL /* next */ }; |