From 23dd48314900691c8f1cebbc7f592104a36fe2ab Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 8 Jun 2025 03:35:11 -0400 Subject: usr.bin: Add 'time' command to return current time - Add usr.bin/time/ program to read RTC - Add 'time' command to osh Signed-off-by: Ian Moffett --- usr.bin/osh/osh.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usr.bin/osh') 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}, -- cgit v1.2.3