From 55d4a328c9fa369611115a066f4f305f2b74dafd Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 12 Apr 2018 06:15:02 +0200 Subject: Read environment for init from config file Signed-off-by: David Oberhollenzer --- initd/init.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'initd/init.h') 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 */ -- cgit v1.2.3