fixed trigger

This commit is contained in:
rootzoll
2018-12-11 13:35:00 +01:00
parent 25551ca4df
commit 01b6f4d4b4

View File

@@ -35,7 +35,7 @@ do
# every 5 minutes
recheckDHCP=$((($counter % 300)+1))
if [ "recheckDHCP" -eq 1 ]; then
if [ ${recheckDHCP} -eq 1 ]; then
echo "*** RECHECK DHCP-SERVER ***"
# get the local network IP
@@ -60,7 +60,7 @@ do
# every 15min - not too often
# because its a ping to external service
recheckPublicIP=$((($counter % 60)+1))
if [ recheckPublicIP -eq 1 ]; then
if [ ${recheckPublicIP} -eq 1 ]; then
echo "*** RECHECK PUBLIC IP ***"
# execute only after setup when config exists