summaryrefslogtreecommitdiff
path: root/src/system
diff options
context:
space:
mode:
authorEshenko Dmitriy <snooppy@mail.ua>2019-11-19 12:57:00 +0300
committerGitHub <noreply@github.com>2019-11-19 12:57:00 +0300
commit9ff0fd30b985cc1ff8d9237158e0c110a81feccc (patch)
treee53d54919a1768a8d244e9e49eafc6979898717b /src/system
parent0070afb677d03a7b02a311f33863c5d3257d3051 (diff)
downloadvyos-1x-9ff0fd30b985cc1ff8d9237158e0c110a81feccc.tar.gz
vyos-1x-9ff0fd30b985cc1ff8d9237158e0c110a81feccc.zip
vyos-hostsd: T1812: run increment first
Diffstat (limited to 'src/system')
-rwxr-xr-xsrc/system/on-dhcp-event.sh4
1 files 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\""