diff options
author | Youyuan <83439858+Yuanandcircle@users.noreply.github.com> | 2023-02-28 19:17:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-28 19:17:44 +0800 |
commit | 112fabb4bbb0aebe91e67d34d9f0678b39c1d1bb (patch) | |
tree | 629c9e00e16dd8027d3928333bb17608b8f2e8f9 /src/etc | |
parent | efd51fb7876d21b59f24a785d4b9e63bf8e4eded (diff) | |
parent | 9b88a68001b79583cc2be59b4d6e1af3bed4aecf (diff) | |
download | vyos-1x-112fabb4bbb0aebe91e67d34d9f0678b39c1d1bb.tar.gz vyos-1x-112fabb4bbb0aebe91e67d34d9f0678b39c1d1bb.zip |
Merge branch 'vyos:current' into current
Diffstat (limited to 'src/etc')
-rw-r--r-- | src/etc/dhcp/dhclient-enter-hooks.d/99-run-user-hooks | 5 | ||||
-rwxr-xr-x | src/etc/dhcp/dhclient-exit-hooks.d/99-run-user-hooks | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/etc/dhcp/dhclient-enter-hooks.d/99-run-user-hooks b/src/etc/dhcp/dhclient-enter-hooks.d/99-run-user-hooks new file mode 100644 index 000000000..b4b4d516d --- /dev/null +++ b/src/etc/dhcp/dhclient-enter-hooks.d/99-run-user-hooks @@ -0,0 +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}" +fi diff --git a/src/etc/dhcp/dhclient-exit-hooks.d/99-run-user-hooks b/src/etc/dhcp/dhclient-exit-hooks.d/99-run-user-hooks new file mode 100755 index 000000000..442419d79 --- /dev/null +++ b/src/etc/dhcp/dhclient-exit-hooks.d/99-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 |