From 9ff0fd30b985cc1ff8d9237158e0c110a81feccc Mon Sep 17 00:00:00 2001 From: Eshenko Dmitriy Date: Tue, 19 Nov 2019 12:57:00 +0300 Subject: vyos-hostsd: T1812: run increment first --- src/system/on-dhcp-event.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/on-dhcp-event.sh b/src/system/on-dhcp-event.sh index af7c86ee7..5046912a6 100755 --- a/src/system/on-dhcp-event.sh +++ b/src/system/on-dhcp-event.sh @@ -44,14 +44,14 @@ case "$action" in fi # add host /usr/bin/vyos-hostsd-client --add-hosts --tag "DHCP-$client_ip" --host "$client_fqdn_name,$client_ip" - ;; ((changes++)) + ;; release) # delete mapping for released address # delete host /usr/bin/vyos-hostsd-client --delete-hosts --tag "DHCP-$client_ip" - ;; ((changes++)) + ;; *) logger -s -t on-dhcp-event "Invalid command \"$1\"" -- cgit v1.2.3