From 18dab183d29eec2a16305a81d98eca55ba52ec49 Mon Sep 17 00:00:00 2001
From: Pawel Krawczyk
Date: Wed, 1 Oct 2014 12:20:45 +0100
Subject: [PATCH] check for curl
---
firewall.user | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/firewall.user b/firewall.user
index 3c7b922..bdef1da 100644
--- a/firewall.user
+++ b/firewall.user
@@ -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