add RC_PREFIX environment variable

This will be used by init scripts which want to be able to run in a
Gentoo Prefix installation. RC_PREFIX will contain the prefix offset.
This commit is contained in:
William Hubbs
2012-09-09 22:22:15 -05:00
parent 918d261658
commit 5092595835
3 changed files with 8 additions and 0 deletions

View File

@ -191,6 +191,10 @@ env_config(void)
if (sys)
setenv("RC_SYS", sys, 1);
#ifdef PREFIX
setenv("RC_PREFIX", RC_PREFIX, 1);
#endif
/* Some scripts may need to take a different code path if
Linux/FreeBSD, etc
To save on calling uname, we store it in an environment variable */