Commit ce9e6348 authored by Alessandro Rubini's avatar Alessandro Rubini Committed by Adam Wujek

uptime command, unconditional because it's very small

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 55a527bb
#include <wrc.h>
#include "shell.h"
static int cmd_uptime(const char *args[])
{
extern uint32_t uptime_sec;
pp_printf("%u\n", uptime_sec);
return 0;
}
DEFINE_WRC_COMMAND(uptime) = {
.name = "uptime",
.exec = cmd_uptime,
};
......@@ -5,6 +5,7 @@ obj-$(CONFIG_WR_NODE) += \
shell/cmd_help.o \
shell/cmd_mac.o \
shell/cmd_ps.o \
shell/cmd_uptime.o \
shell/cmd_refresh.o
obj-$(CONFIG_EMBEDDED_NODE) += \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment