diff options
author | Ian Moffett <ian@osmora.org> | 2025-06-24 04:40:58 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-06-24 04:40:58 -0400 |
commit | 68fbcd77640d840e60bf9851ae12d20e8178854a (patch) | |
tree | 504f70956f3a277733784bde1e6282e9d9eb49fa /sys/kern/init_main.c | |
parent | 4e3351d4a75c02ac7a2a8c60cc6fa6579d95f08f (diff) |
usr: Start shell + rc through /usr/sbin/init
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r-- | sys/kern/init_main.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 43142ec..81ddcb5 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -46,10 +46,8 @@ #if defined(_INSTALL_MEDIA) #define _START_PATH "/usr/sbin/install" -#define _START_ARG NULL #else -#define _START_PATH "/usr/bin/osh" -#define _START_ARG "/usr/rc/init.rc" +#define _START_PATH "/usr/sbin/init" #endif /* _INSTALL_MEDIA */ struct proc g_proc0; @@ -66,7 +64,7 @@ start_init(void) { struct proc *td = this_td(); struct execve_args execve_args; - char *argv[] = { _START_PATH, _START_ARG, NULL }; + char *argv[] = { _START_PATH, NULL, NULL }; char *envp[] = { NULL }; execve_args.pathname = argv[0]; |