.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd April 28, 2020
+.Dd May 24, 2020
.Dt DHCPCD-RUN-HOOKS 8
.Os
.Sh NAME
.Nm
could be invoked:
.Bl -tag -width EXPIREXXXEXPIRE6
-.It Dv CHROOT
-dhcpcd is starting up and needs to configure a chroot environment.
.It Dv PREINIT
dhcpcd is starting up and any pre-initialisation should be done.
.It Dv CARRIER
freopen(_PATH_DEVNULL, "r", stdin);
#ifdef PRIVSEP
- if (ps_init(&ctx) == 0)
- script_runchroot(&ctx);
+ ps_init(&ctx);
#endif
#ifdef USE_SIGNALS
return status;
}
-
-#ifdef PRIVSEP
-int
-script_runchroot(struct dhcpcd_ctx *ctx)
-{
- char *argv[2];
-
- /* Make our env */
- if (make_env(ctx, NULL, "CHROOT") == -1) {
- logerr(__func__);
- return -1;
- }
-
- argv[0] = ctx->script;
- argv[1] = NULL;
- logdebugx("executing `%s' %s", argv[0], "CHROOT");
-
- return script_run(ctx, argv);
-}
-#endif
pid_t script_exec(char *const *, char *const *);
int send_interface(struct fd_list *, const struct interface *, int);
int script_runreason(const struct interface *, const char *);
-int script_runchroot(struct dhcpcd_ctx *);
#endif