diff options
author | Ian Moffett <ian@osmora.org> | 2024-05-23 15:04:39 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-05-23 15:04:39 -0400 |
commit | 0618a7d43404f0da94f74f249d789c35712435d3 (patch) | |
tree | b9f0537a1743993c9ad589461acacf5fd77f925e /usr.sbin | |
parent | 79d3090766a1cb87d0d619cd59efb5c3048d1c68 (diff) |
init: mshell: Allow reading from /proc/interrupts
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/init/mshell.c | 3 |
1 files changed, 3 insertions, 0 deletions
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"); |