logger(LOG_ERR, "read_interface: %s", strerror(errno));
goto eexit;
}
-
logger(LOG_DEBUG, "hardware address = %s",
hwaddr_ntoa(iface->hwaddr, iface->hwlen));
-
state = xzalloc(sizeof(*state));
state->pid_fd = pid_fd;
state->interface = iface;
+ run_script(options, iface->name, "PREINIT", NULL, NULL);
if (client_setup(state, options) == -1)
goto eexit;
goto eexit;
if (signal_setup() == -1)
goto eexit;
-
state->signal_fd = signal_fd();
if (state->options & DHCPCD_BACKGROUND &&
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd August 13, 2008
+.Dd August 14, 2008
.Dt DHCPCD.SH 8 SMM
.Sh NAME
.Nm dhcpcd-run-hooks
.Nm
could be invoked:
.Bl -tag -width indent
+.It Dv PREINIT
+dhcpcd is starting up and any pre-initialisation should be done.
.It Dv INFORM
dhcpcd informed a DHCP server about it's address and obtained other
configuration details.