aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/commands
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/commands')
-rw-r--r--src/kernel/commands/command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/commands/command.c b/src/kernel/commands/command.c
index 1118b29..4ae8836 100644
--- a/src/kernel/commands/command.c
+++ b/src/kernel/commands/command.c
@@ -20,7 +20,7 @@ void exec_command(char *command) {
vesa_draw_string("pong!\n");
else if (starts_with(command, "clear"))
vesa_clear();
- else if (starts_with(command, "shutdown"))
+ else if (starts_with(command, "shutdown") || starts_with(command, "exit"))
acpi_poweroff();
else if (starts_with(command, "zzz"))
vesa_draw_string("Not implemented\n");
@@ -31,6 +31,6 @@ void exec_command(char *command) {
write_time();
else if (starts_with(command, "reboot"))
reboot();
- else
+ else if (command[0] != 0)
vesa_draw_string("Command not found!\n");
}