mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 16:01:05 +08:00
dhcpcd: Add hooks
This commit is contained in:
@@ -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__ */
|
||||
|
Reference in New Issue
Block a user