diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2012-09-09 22:22:15 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2012-09-09 22:22:15 -0500 |
commit | 5092595835461e889fbac14d4cfc6c06b5f55019 (patch) | |
tree | 7e7a35a5e67c401aa71c566c0c9fac0408d6c159 /src/rc | |
parent | 918d261658a75e42589d9e5556613a84eacbd14f (diff) |
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.
Diffstat (limited to 'src/rc')
-rw-r--r-- | src/rc/rc-misc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rc/rc-misc.c b/src/rc/rc-misc.c index 27397d71..e8f6ca6e 100644 --- a/src/rc/rc-misc.c +++ b/src/rc/rc-misc.c @@ -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 */ |