summaryrefslogtreecommitdiff
path: root/usr.bin/osh
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-05-31 17:17:57 -0400
committerIan Moffett <ian@osmora.org>2025-05-31 17:17:57 -0400
commit65024f230dd030f2f10c155f63b1d374aac00f86 (patch)
tree6365c025fc880f9b262684b03272419ed3c80eeb /usr.bin/osh
parent19497ac00ceb8e225ce7008df26024d4c6a1d2b9 (diff)
usr.bin: Add simple `fetch' program
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr.bin/osh')
-rw-r--r--usr.bin/osh/osh.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/osh/osh.c b/usr.bin/osh/osh.c
index 4e16463..583f29a 100644
--- a/usr.bin/osh/osh.c
+++ b/usr.bin/osh/osh.c
@@ -51,6 +51,7 @@
"reboot - Reboot the machine\n" \
"shutdown - Power off the machine\n" \
"kmsg - Print kernel message buffer\n" \
+ "fetch - System information\n" \
"exit - Exit the shell\n"
#define PROMPT "[root::osmora]~ "
@@ -188,6 +189,7 @@ struct command cmds[] = {
{"reboot", NULL, cmd_reboot},
{"shutdown", NULL, cmd_shutdown},
{"kmsg", "/usr/bin/kmsg", NULL},
+ {"fetch", "/usr/bin/fetch", NULL},
{NULL, NULL}
};