From 47cc65d2231dbd9acaedbe1ee0542ef4293aeddb Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 19 Aug 2025 17:30:00 +0000 Subject: usr: osh: Seperate 'reboot' command from builtins Gives the reboot command its own binary in /usr/bin/reboot Signed-off-by: Ian Moffett --- usr.bin/osh/osh.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'usr.bin/osh') diff --git a/usr.bin/osh/osh.c b/usr.bin/osh/osh.c index 5062e64..1c9f508 100644 --- a/usr.bin/osh/osh.c +++ b/usr.bin/osh/osh.c @@ -78,7 +78,6 @@ static bool bs_bell = true; /* Beep on backspace */ static void cmd_help(int argc, char *argv[]); static void cmd_echo(int argc, char *argv[]); static void cmd_exit(int argc, char *argv[]); -static void cmd_reboot(int argc, char *argv[]); static void cmd_shutdown(int argc, char *argv[]); static void cmd_bell(int argc, char *argv[]); static void cmd_clear(int argc, char *argv[]); @@ -100,7 +99,6 @@ struct parse_state { static struct builtin_cmd cmds[] = { {"help",cmd_help}, {"exit",cmd_exit}, - {"reboot",cmd_reboot}, {"shutdown", cmd_shutdown}, {"bell", cmd_bell}, {"clear", cmd_clear}, @@ -119,12 +117,6 @@ cmd_exit(int argc, char *argv[]) running = 0; } -static void -cmd_reboot(int argc, char *argv[]) -{ - cpu_reboot(REBOOT_RESET); -} - static void cmd_shutdown(int argc, char *argv[]) { -- cgit v1.2.3