summaryrefslogtreecommitdiff
path: root/src/etc/dhcp/dhclient-exit-hooks.d/98-run-user-hooks
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-04-03 11:41:47 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2023-04-03 11:41:47 +0000
commit1a1f425f869f94c7c7a9d57b71555e9e13796c9e (patch)
tree78b55e1dd9e46a62e5ebc4f990c0cbac7d7e77f1 /src/etc/dhcp/dhclient-exit-hooks.d/98-run-user-hooks
parentb65296a0ff39e66d87e916971477cce351f6d5a5 (diff)
downloadvyos-1x-1a1f425f869f94c7c7a9d57b71555e9e13796c9e.tar.gz
vyos-1x-1a1f425f869f94c7c7a9d57b71555e9e13796c9e.zip
T5141: Add numbers for dhclient-exit-hooks.d to enforce order
Add numbers for all dhclient-exit-hooks.d to enforce script order execution Also, move '99-run-user-hooks' to '98-run-user-hooks' due to vyatta-dhclient-hook bug and exit with 'exit 1' it is described in the https://vyos.dev/T4856, so we should move this hook to the end. Rename 'vyatta-dhclient-hook' to '99-vyatta-dhclient-hook'
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-hooks5
1 files changed, 5 insertions, 0 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
new file mode 100755
index 000000000..442419d79
--- /dev/null
+++ b/src/etc/dhcp/dhclient-exit-hooks.d/98-run-user-hooks
@@ -0,0 +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}"
+fi