summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-01-15 06:10:43 +0100
committerGitHub <noreply@github.com>2024-01-15 06:10:43 +0100
commitc4b881e00d70ce705e2991145d31a55853bc832a (patch)
tree1197a223c3fd4dd36b077b3c00f9033a678d5925 /src
parentc2215e39f134f11903f8c3d1500e79226ad45222 (diff)
parente613983721c48c13c2e6e73e7c4dbdbaa8e9eacf (diff)
downloadvyos-1x-c4b881e00d70ce705e2991145d31a55853bc832a.tar.gz
vyos-1x-c4b881e00d70ce705e2991145d31a55853bc832a.zip
Merge pull request #2824 from sever-sever/T5901
T5901: Add DHCP base_path dir during first boot
Diffstat (limited to 'src')
-rw-r--r--src/etc/dhcp/dhclient-exit-hooks.d/03-vyos-dhclient-hook1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/etc/dhcp/dhclient-exit-hooks.d/03-vyos-dhclient-hook b/src/etc/dhcp/dhclient-exit-hooks.d/03-vyos-dhclient-hook
index 35721d009..d5e6462ba 100644
--- a/src/etc/dhcp/dhclient-exit-hooks.d/03-vyos-dhclient-hook
+++ b/src/etc/dhcp/dhclient-exit-hooks.d/03-vyos-dhclient-hook
@@ -29,6 +29,7 @@ fi
if [ "$RUN" = "yes" ]; then
BASE_PATH=$(python3 -c "from vyos.defaults import directories; print(directories['isc_dhclient_dir'])")
+ mkdir -p ${BASE_PATH}
LOG=${BASE_PATH}/dhclient_"$interface"."$proto"lease
echo `date` > $LOG