summaryrefslogtreecommitdiff
path: root/usr.bin/osh/osh.c
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-06-08 03:35:11 -0400
committerIan Moffett <ian@osmora.org>2025-06-08 04:15:14 -0400
commit23dd48314900691c8f1cebbc7f592104a36fe2ab (patch)
treeaa398ef6ec76c4d35fcec56028e850c53a596687 /usr.bin/osh/osh.c
parentf69c8437da833fadd2286b87d5c12b16470363c5 (diff)
usr.bin: Add 'time' command to return current timeexpt
- Add usr.bin/time/ program to read RTC - Add 'time' command to osh Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr.bin/osh/osh.c')
-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 f3a3a93..f02b019 100644
--- a/usr.bin/osh/osh.c
+++ b/usr.bin/osh/osh.c
@@ -55,6 +55,7 @@
"fetch - System information\n" \
"kfg - Start up kfgwm\n" \
"bell - Toggle backspace bell\n" \
+ "time - Get the current time\n" \
"exit - Exit the shell"
#define PROMPT "[root::osmora]~ "
@@ -226,6 +227,7 @@ struct command cmds[] = {
{"reboot", NULL, cmd_reboot},
{"shutdown", NULL, cmd_shutdown},
{"bell", NULL, cmd_bell},
+ {"time", "/usr/bin/time", NULL},
{"kmsg", "/usr/bin/kmsg", NULL},
{"fetch", "/usr/bin/fetch", NULL},
{"kfg", "/usr/bin/kfgwm", NULL},