summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/shell/main_halt.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libmisc/shell/main_halt.c')
-rw-r--r--cpukit/libmisc/shell/main_halt.c11
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 */
};