projects
/
project
/
procd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e08f52e
)
initd: allow overriding early PATH through build time define
author
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 8 Feb 2016 11:13:49 +0000
(12:13 +0100)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 8 Feb 2016 11:13:52 +0000
(12:13 +0100)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
initd/early.c
patch
|
blob
|
history
initd/init.h
patch
|
blob
|
history
diff --git
a/initd/early.c
b/initd/early.c
index
5821c58
..
4343516
100644
(file)
--- a/
initd/early.c
+++ b/
initd/early.c
@@
-90,7
+90,7
@@
early_mounts(void)
static void
early_env(void)
{
- setenv("PATH",
"/usr/sbin:/usr/bin:/sbin:/bin"
, 1);
+ setenv("PATH",
EARLY_PATH
, 1);
}
void
diff --git
a/initd/init.h
b/initd/init.h
index
274645b
..
123e114
100644
(file)
--- a/
initd/init.h
+++ b/
initd/init.h
@@
-18,6
+18,10
@@
#include "../log.h"
+#ifndef EARLY_PATH
+#define EARLY_PATH "/usr/sbin:/sbin:/usr/bin:/bin"
+#endif
+
void preinit(void);
void early(void);
int mkdev(const char *progname, int progmode);