diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-05-02 09:01:32 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-05-08 07:37:17 +0200 |
commit | b2eb48c23b86cb61504bb0324a94ea11df5653e8 (patch) | |
tree | 4c293be7b280f369f72c7250fd73902d8bc65a79 /dhcpcd/dhcpcd.c | |
parent | dhcpcd: Add rtems_dhcpcd_start() (diff) | |
download | rtems-libbsd-b2eb48c23b86cb61504bb0324a94ea11df5653e8.tar.bz2 |
dhcpcd: Add hooks
Diffstat (limited to 'dhcpcd/dhcpcd.c')
-rw-r--r-- | dhcpcd/dhcpcd.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/dhcpcd/dhcpcd.c b/dhcpcd/dhcpcd.c index 59562d63..fd6356de 100644 --- a/dhcpcd/dhcpcd.c +++ b/dhcpcd/dhcpcd.c @@ -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__ */ |