diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/rc/rc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rc/rc.c b/src/rc/rc.c index 4b76a6de..d1446cdb 100644 --- a/src/rc/rc.c +++ b/src/rc/rc.c @@ -559,6 +559,11 @@ static void do_newlevel(const char *newlevel) setenv("RC_RUNLEVEL", newlevel, 1); run_program(INITSH); + + /* init may have mounted /proc so we can now detect or real + * sys */ + if ((sys = rc_sys())) + setenv("RC_SYS", sys, 1); } else if (strcmp(newlevel, RC_LEVEL_SINGLE) == 0) { #ifndef PREFIX if (! RUNLEVEL || |