diff options
author | Ian Moffett <ian@osmora.org> | 2025-08-19 17:30:00 +0000 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-08-19 17:30:00 +0000 |
commit | 47cc65d2231dbd9acaedbe1ee0542ef4293aeddb (patch) | |
tree | 667704301ebf81e24c2604340337674cd1a80c78 /usr.bin/osh | |
parent | a871801e1e38db8e8ca3a662e7e4ecf08c7c3297 (diff) |
usr: osh: Seperate 'reboot' command from builtinsmain
Gives the reboot command its own binary in /usr/bin/reboot
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr.bin/osh')
-rw-r--r-- | usr.bin/osh/osh.c | 8 |
1 files changed, 0 insertions, 8 deletions
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}, @@ -120,12 +118,6 @@ cmd_exit(int argc, char *argv[]) } static void -cmd_reboot(int argc, char *argv[]) -{ - cpu_reboot(REBOOT_RESET); -} - -static void cmd_shutdown(int argc, char *argv[]) { cpu_reboot(REBOOT_POWEROFF | REBOOT_HALT); |