summaryrefslogtreecommitdiff
path: root/src/etc/dhcp/dhclient-exit-hooks.d/vyatta-dhclient-hook
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-11-14 07:00:30 +0100
committerGitHub <noreply@github.com>2022-11-14 07:00:30 +0100
commit92b828154497c534ce82af16320ed34f0c15e51c (patch)
tree4fb0e69e87e37cca30451af6c06a83944486c2ad /src/etc/dhcp/dhclient-exit-hooks.d/vyatta-dhclient-hook
parent61574eaf2d703e8084c8272e6976fd44abaea482 (diff)
parent00ec496877453cc37ceec0633821a47f128d9f4f (diff)
downloadvyos-1x-92b828154497c534ce82af16320ed34f0c15e51c.tar.gz
vyos-1x-92b828154497c534ce82af16320ed34f0c15e51c.zip
Merge pull request #1656 from vfreex/fix-ns-config
T4815: Fix various name server config issues
Diffstat (limited to 'src/etc/dhcp/dhclient-exit-hooks.d/vyatta-dhclient-hook')
-rw-r--r--src/etc/dhcp/dhclient-exit-hooks.d/vyatta-dhclient-hook6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/etc/dhcp/dhclient-exit-hooks.d/vyatta-dhclient-hook b/src/etc/dhcp/dhclient-exit-hooks.d/vyatta-dhclient-hook
index eeb8b0782..49bb18372 100644
--- a/src/etc/dhcp/dhclient-exit-hooks.d/vyatta-dhclient-hook
+++ b/src/etc/dhcp/dhclient-exit-hooks.d/vyatta-dhclient-hook
@@ -8,12 +8,12 @@
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
-#
+#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
-#
+#
# This code was originally developed by Vyatta, Inc.
# Portions created by Vyatta are Copyright (C) 2006, 2007, 2008 Vyatta, Inc.
# All Rights Reserved.
@@ -23,7 +23,7 @@
RUN="yes"
proto=""
-if [[ $reason =~ (REBOOT6|INIT6|EXPIRE6|RELEASE6|STOP6|INFORM6|BOUND6|REBIND6|DELEGATED6) ]]; then
+if [[ $reason =~ ^(REBOOT6|INIT6|EXPIRE6|RELEASE6|STOP6|INFORM6|BOUND6|REBIND6|DELEGATED6)$ ]]; then
proto="v6"
fi