Builder71
Very Senior Member
... The script has checks that prevent the lists from being loaded if they are already loaded ...
... I believe the script checks to see if the last time it downloaded the files is over 15 days to re-download the country data.
The above seems to interact unexpected, not sure if this is how it should work.
When the script is run for the first time after boot, it will download new /jffs/ipset_lists/country.lst files if older then 15 days.
However every time you run the script again, e.g. cron job, country.lst files will never be updated.
It seems because ipset and/or iptables are already in place and the script exits. (Check to prevent lists from being loaded if they are already loaded.)
In short, when the router stays on for a very long time, without reboot, your country blocking does not get updated.
Can anyone with script skills have a look at this?