diff options
author | Ian Moffett <ian@osmora.org> | 2024-05-22 19:50:54 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-05-22 19:55:00 -0400 |
commit | 5559da2299dc50b50c62d7d1b92b769803fb9321 (patch) | |
tree | 6450d1450a3fc4fb607310b41c1d559126b4de6e /usr.sbin/init/main.c | |
parent | d6104baa618686f7f0f0f36216394b60553ac14a (diff) |
init: Add maintenance shell
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr.sbin/init/main.c')
-rw-r--r-- | usr.sbin/init/main.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/init/main.c b/usr.sbin/init/main.c index 754b98e..4a7176c 100644 --- a/usr.sbin/init/main.c +++ b/usr.sbin/init/main.c @@ -28,6 +28,7 @@ */ #include <stdio.h> +#include "mshell.h" #define VERSION "v0.0.1" @@ -43,7 +44,11 @@ int main(int argc, char **argv) { loginfo("Hyra init " VERSION " loaded\n"); - loginfo("Hello, World!\n"); + loginfo("Dropping into maintenance shell...\n"); + + if (mshell_enter() != 0) + loginfo("Failed to launch mshell!\n"); + loginfo("** EXITING 0 **\n"); return 0; } |