diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-11-15 14:12:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-15 14:12:09 +0100 |
commit | 6d90375db4dd0c9beb2815e8ceae2d6214465f99 (patch) | |
tree | 050292e6ba92248a02948c430ec5da778e90833d /src/etc/dhcp/dhclient-exit-hooks.d/01-vyos-cleanup | |
parent | b3e524c29e9f5c8e7536ba86de9097be70fe5fb6 (diff) | |
parent | ff901a52bb9acd4bdd0e3a96033c896e4667a6af (diff) | |
download | vyos-1x-6d90375db4dd0c9beb2815e8ceae2d6214465f99.tar.gz vyos-1x-6d90375db4dd0c9beb2815e8ceae2d6214465f99.zip |
Merge pull request #1659 from vfreex/fix-ns-config-equuleus
backport: T4815: Fix various name server config issues
Diffstat (limited to 'src/etc/dhcp/dhclient-exit-hooks.d/01-vyos-cleanup')
-rw-r--r-- | src/etc/dhcp/dhclient-exit-hooks.d/01-vyos-cleanup | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/etc/dhcp/dhclient-exit-hooks.d/01-vyos-cleanup b/src/etc/dhcp/dhclient-exit-hooks.d/01-vyos-cleanup index eac860cd8..378f74741 100644 --- a/src/etc/dhcp/dhclient-exit-hooks.d/01-vyos-cleanup +++ b/src/etc/dhcp/dhclient-exit-hooks.d/01-vyos-cleanup @@ -8,7 +8,7 @@ hostsd_changes= /usr/bin/systemctl -q is-active vyos-hostsd hostsd_status=$? -if [[ $reason =~ (EXPIRE|FAIL|RELEASE|STOP) ]]; then +if [[ $reason =~ ^(EXPIRE|FAIL|RELEASE|STOP)$ ]]; then if [[ $hostsd_status -eq 0 ]]; then # delete search domains and nameservers via vyos-hostsd logmsg info "Deleting search domains with tag \"dhcp-$interface\" via vyos-hostsd-client" @@ -96,7 +96,7 @@ if [[ $reason =~ (EXPIRE|FAIL|RELEASE|STOP) ]]; then fi fi -if [[ $reason =~ (EXPIRE6|RELEASE6|STOP6) ]]; then +if [[ $reason =~ ^(EXPIRE6|RELEASE6|STOP6)$ ]]; then if [[ $hostsd_status -eq 0 ]]; then # delete search domains and nameservers via vyos-hostsd logmsg info "Deleting search domains with tag \"dhcpv6-$interface\" via vyos-hostsd-client" |