summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-04-13 13:08:11 +0200
committerGitHub <noreply@github.com>2024-04-13 13:08:11 +0200
commit7441c14810e5254d53c7fefca87297ad10ab9c1d (patch)
tree2409aa4e0347c389f96d3ef9db594b315732ae93 /src
parent31f281be66bb8c99aa693926fa0be5b5ca105cea (diff)
parent8ac67c2fc03065b257e7f53e28a6153d6dfd371b (diff)
downloadvyos-1x-7441c14810e5254d53c7fefca87297ad10ab9c1d.tar.gz
vyos-1x-7441c14810e5254d53c7fefca87297ad10ab9c1d.zip
Merge pull request #3303 from vyos/mergify/bp/sagitta/pr-3302
T5872: fix ipsec dhclient hook uses "exit" instead of "return" (backport #3302)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/etc/dhcp/dhclient-exit-hooks.d/99-ipsec-dhclient-hook6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/etc/dhcp/dhclient-exit-hooks.d/99-ipsec-dhclient-hook b/src/etc/dhcp/dhclient-exit-hooks.d/99-ipsec-dhclient-hook
index ebb100e8b..57f803055 100755
--- a/src/etc/dhcp/dhclient-exit-hooks.d/99-ipsec-dhclient-hook
+++ b/src/etc/dhcp/dhclient-exit-hooks.d/99-ipsec-dhclient-hook
@@ -17,7 +17,7 @@
DHCP_HOOK_IFLIST="/tmp/ipsec_dhcp_interfaces"
if ! { [ -f $DHCP_HOOK_IFLIST ] && grep -qw $interface $DHCP_HOOK_IFLIST; }; then
- exit 0
+ return 0
fi
# Re-generate the config on the following events:
@@ -26,10 +26,10 @@ fi
# - REBIND: re-generate if the IP address changed
if [ "$reason" == "RENEW" ] || [ "$reason" == "REBIND" ]; then
if [ "$old_ip_address" == "$new_ip_address" ]; then
- exit 0
+ return 0
fi
elif [ "$reason" != "BOUND" ]; then
- exit 0
+ return 0
fi
# Best effort wait for any active commit to finish