comparison typo and script flow fix (#1599)

Co-authored-by: Patrick Scheich
This commit is contained in:
PatrickScheich 2020-09-28 21:40:41 +02:00 committed by rootzoll
parent f87bc3db8d
commit ef4fde450f

View File

@ -107,11 +107,11 @@ do
# execute only after setup when config exists
if [ ${configExists} -eq 1 ]; then
publicIPChanged=$(/home/admin/config.scripts/internet.sh update-publicip | grep -c 'ip_changed=1')
fi
# check if changed
elif [ ${publicIPChanged} -get 0 ]; then
if [ ${publicIPChanged} -gt 0 ]; then
# refresh data
source /mnt/hdd/raspiblitz.conf