Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
@@ -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
@@ -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);