summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@sentrium.io>2019-11-19 20:11:05 +0700
committerGitHub <noreply@github.com>2019-11-19 20:11:05 +0700
commita7051558ec185f020d3ccb3b01f124e52871aa1c (patch)
treee53d54919a1768a8d244e9e49eafc6979898717b
parent0070afb677d03a7b02a311f33863c5d3257d3051 (diff)
parent9ff0fd30b985cc1ff8d9237158e0c110a81feccc (diff)
downloadvyos-1x-a7051558ec185f020d3ccb3b01f124e52871aa1c.tar.gz
vyos-1x-a7051558ec185f020d3ccb3b01f124e52871aa1c.zip
Merge pull request #167 from DmitriyEshenko/patch-9
vyos-hostsd: T1812: run increment first
-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\""