From ffd82e18b5259fab477ad375a7af8550fac526d8 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 19 Sep 2019 19:01:53 +0200 Subject: Added reboot feature --- src/commands/command.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/commands/command.c') diff --git a/src/commands/command.c b/src/commands/command.c index eeac08e..9cbcb07 100644 --- a/src/commands/command.c +++ b/src/commands/command.c @@ -19,6 +19,8 @@ void exec_command(char *command) { terminal_write_line("pong!"); else if (starts_with(command, "shutdown")) shutdown(); + else if (starts_with(command, "reboot")) + reboot(); else terminal_write_line("Command not found!"); } -- cgit v1.2.3