summaryrefslogtreecommitdiff
path: root/initd/init.h
diff options
context:
space:
mode:
Diffstat (limited to 'initd/init.h')
-rw-r--r--initd/init.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/initd/init.h b/initd/init.h
index 878dc8d..a43b3f1 100644
--- a/initd/init.h
+++ b/initd/init.h
@@ -25,6 +25,8 @@
#include "telinit.h"
#include "util.h"
+#define ENVFILE ETCPATH "/initd.env"
+
enum {
STATUS_OK = 0,
STATUS_FAIL,
@@ -107,5 +109,13 @@ void svclist_add(service_t *svc);
*/
service_t *svclist_remove(pid_t pid);
+/********** env.c **********/
+
+/*
+ Read /etc/initd.env (actually ENVFILE defined above)
+ and setup environment variables for init.
+*/
+int initenv(void);
+
#endif /* INIT_H */