check for curl

This commit is contained in:
Pawel Krawczyk 2014-10-01 12:20:45 +01:00
parent e4bc132f20
commit 18dab183d2

View File

@ -27,6 +27,11 @@ if [ ! -x /usr/sbin/ipset ]; then
echo "Run: opkg update && opkg install ipset"
exit 1
fi
if [ ! -x /usr/bin/curl ]; then
echo "Cannot find curl"
echo "Run: opkg update && opkg install curl"
exit 1
fi
# create main blocklists chain
if ! iptables -L ${blocklist_chain_name}; then iptables -N ${blocklist_chain_name}; fi