Skip to content

Commit

Permalink
Merge pull request #2473 from vyos/mergify/bp/sagitta/pr-2472
Browse files Browse the repository at this point in the history
dhclient: T5724: run user hooks using run_hookdir (backport #2472)
  • Loading branch information
c-po authored Nov 11, 2023
2 parents b8b3a39 + 0054e17 commit 9f92b9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/etc/dhcp/dhclient-enter-hooks.d/99-run-user-hooks
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
DHCP_PRE_HOOKS="/config/scripts/dhcp-client/pre-hooks.d/"
if [ -d "${DHCP_PRE_HOOKS}" ] ; then
run-parts "${DHCP_PRE_HOOKS}"
run_hookdir "${DHCP_PRE_HOOKS}"
fi
2 changes: 1 addition & 1 deletion src/etc/dhcp/dhclient-exit-hooks.d/98-run-user-hooks
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9f92b9f

Please sign in to comment.