mirror of
https://github.com/itdoginfo/ansible-openwrt-hirkn.git
synced 2025-12-22 23:23:35 +05:00
22 lines
550 B
Django/Jinja
22 lines
550 B
Django/Jinja
#!/bin/sh
|
|
|
|
START=99
|
|
|
|
dir=/tmp/lst
|
|
|
|
mkdir -p $dir
|
|
|
|
echo "Run download lists"
|
|
{% if download_utility == "curl" %}
|
|
curl -z $dir/subnet.lst https://antifilter.download/list/subnet.lst --output $dir/subnet.lst
|
|
curl -z $dir/ip.lst https://antifilter.download/list/ip.lst --output $dir/ip.lst
|
|
|
|
{% elif download_utility == "wget" %}
|
|
rm -f /$dir/subnet.lst && wget -P $dir https://antifilter.download/list/subnet.lst
|
|
rm -f /$dir/ip.lst && wget -P $dir https://antifilter.download/list/ip.lst
|
|
|
|
{% endif %}
|
|
|
|
echo "Firewall restart"
|
|
/etc/init.d/firewall restart
|