dhcpcd: Add hooks

This commit is contained in:
Sebastian Huber
2018-05-02 09:01:32 +02:00
parent 8bd38d645c
commit b2eb48c23b
7 changed files with 118 additions and 6 deletions

View File

@@ -1599,3 +1599,17 @@ main(int argc, char **argv)
eloop_start(&dhcpcd_sigset);
exit(EXIT_SUCCESS);
}
#ifdef __rtems__
int
dhcpcd_script_runreason_do_nothing(const struct interface *ifp,
const char *reason)
{
return 0;
}
/*
* Do not pull in the script support if it is not used, e.g. no call to
* rtems_dhcpcd_add_hook() is present.
*/
__weak_reference(dhcpcd_script_runreason_do_nothing, dhcpcd_script_runreason);
#endif /* __rtems__ */