summaryrefslogtreecommitdiff
path: root/src/etc/dhcp/dhclient-exit-hooks.d/98-run-user-hooks
diff options
context:
space:
mode:
authorgavol <34028214+gavol@users.noreply.github.com>2023-11-11 11:00:34 +0100
committerGitHub <noreply@github.com>2023-11-11 11:00:34 +0100
commit645a0e768e27912a3f46d00de31d0fc79b6fd463 (patch)
tree6ffcbe8ce2163df8f2a790360d546f436182c08c /src/etc/dhcp/dhclient-exit-hooks.d/98-run-user-hooks
parentc29321304ba83a37cb5584e2719505fa9ca8e2e8 (diff)
downloadvyos-1x-645a0e768e27912a3f46d00de31d0fc79b6fd463.tar.gz
vyos-1x-645a0e768e27912a3f46d00de31d0fc79b6fd463.zip
dhclient: T5724: run user hooks using run_hookdir
User hooks are executed using run_hookdir (defined in the /sbin/dhclient-script script) instead of run-parts. That allows user hooks to modify variables set by the dhcp client (e.g., the new_routers variable to avoid the installation of the default routes).
Diffstat (limited to 'src/etc/dhcp/dhclient-exit-hooks.d/98-run-user-hooks')
-rwxr-xr-xsrc/etc/dhcp/dhclient-exit-hooks.d/98-run-user-hooks2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/dhcp/dhclient-exit-hooks.d/98-run-user-hooks b/src/etc/dhcp/dhclient-exit-hooks.d/98-run-user-hooks
index 442419d79..910b586f0 100755
--- a/src/etc/dhcp/dhclient-exit-hooks.d/98-run-user-hooks
+++ b/src/etc/dhcp/dhclient-exit-hooks.d/98-run-user-hooks
@@ -1,5 +1,5 @@
#!/bin/bash
DHCP_POST_HOOKS="/config/scripts/dhcp-client/post-hooks.d/"
if [ -d "${DHCP_POST_HOOKS}" ] ; then
- run-parts "${DHCP_POST_HOOKS}"
+ run_hookdir "${DHCP_POST_HOOKS}"
fi