diff options
author | Christian Breunig <christian@breunig.cc> | 2024-04-12 20:30:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-12 20:30:18 +0200 |
commit | a8b85291f47c5674d6d8a448e818981315625f70 (patch) | |
tree | 612f7075019ef5b0cabfc71bfe6af7b068b21dbe /src/etc/dhcp/dhclient-exit-hooks.d/99-ipsec-dhclient-hook | |
parent | 1170a2fffe918957818c3b8ea53aad15a8898b87 (diff) | |
parent | 840ab82e8821624aae589dec1ea86cefbcf866b7 (diff) | |
download | vyos-1x-a8b85291f47c5674d6d8a448e818981315625f70.tar.gz vyos-1x-a8b85291f47c5674d6d8a448e818981315625f70.zip |
Merge pull request #3302 from lucasec/t5872-fix
T5872: fix ipsec dhclient hook uses "exit" instead of "return"
Diffstat (limited to 'src/etc/dhcp/dhclient-exit-hooks.d/99-ipsec-dhclient-hook')
-rwxr-xr-x | src/etc/dhcp/dhclient-exit-hooks.d/99-ipsec-dhclient-hook | 6 |
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 |