aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/commands
diff options
context:
space:
mode:
authorMarvin Borner2019-11-10 22:05:44 +0100
committerMarvin Borner2019-11-10 22:05:44 +0100
commit765559cab48a27be66f40f1b081c79fe32bee8c7 (patch)
tree389bdb54407f622de81636b1358617e5ecdbdddb /src/kernel/commands
parent7e06dfe06a0f7847eed105bc4f7ccb22df5228fc (diff)
Fixed some strange bugs and reimplemented mode detection
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");
}