From 0618a7d43404f0da94f74f249d789c35712435d3 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 23 May 2024 15:04:39 -0400 Subject: init: mshell: Allow reading from /proc/interrupts Signed-off-by: Ian Moffett --- usr.sbin/init/mshell.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/usr.sbin/init/mshell.c b/usr.sbin/init/mshell.c index a1c2c3b..38ea003 100644 --- a/usr.sbin/init/mshell.c +++ b/usr.sbin/init/mshell.c @@ -59,6 +59,7 @@ help(void) "\tpagesize - get the current page size\n" "\tkversion - get the kernel version\n" "\tmemstat - get info about memory\n" + "\tintr - get interrupt information\n" "\texit - exit the shell\n" ); } @@ -123,6 +124,8 @@ parse_input(struct mshell_state *state) print_file("/proc/version"); } else if (strcmp(cmd, "memstat") == 0) { print_file("/proc/memstat"); + } else if (strcmp(cmd, "intr") == 0) { + print_file("/proc/interrupts"); } else { printf("Unknown command '%s'\n", cmd); printf("Use 'help' for help\n"); -- cgit v1.2.3