diff options
Diffstat (limited to 'config/ipblocklist/IP-Blocklist.sh')
-rw-r--r-- | config/ipblocklist/IP-Blocklist.sh | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/config/ipblocklist/IP-Blocklist.sh b/config/ipblocklist/IP-Blocklist.sh index 009f970c..442d9443 100644 --- a/config/ipblocklist/IP-Blocklist.sh +++ b/config/ipblocklist/IP-Blocklist.sh @@ -30,14 +30,22 @@ Wfilelist="/usr/local/www/packages/ipblocklist/file_Wlist.txt" for fileline in $(cat $filelist); do iplist="/usr/local/www/packages/ipblocklist/lists/$fileline" iplistout="/usr/local/www/packages/ipblocklist/lists/ipfw.ipfw" -/usr/bin/perl /usr/local/www/packages/ipblocklist/convert.pl $iplist $iplistout +#sleep 5 +#echo "file name: " +#echo $iplist +#sleep 5 +if [ "$iplist" != "/usr/local/www/packages/ipblocklist/lists/ipfw.ipfw" ]; then + #/usr/bin/perl /usr/local/www/packages/ipblocklist/convert.pl $iplist $iplistout + #echo "THIS JUST RAN" +fi +#sleep 5 done #Whitelist for Wfileline in $(cat $Wfilelist); do Wiplist="/usr/local/www/packages/ipblocklist/Wlists/$Wfileline" Wiplistout="/usr/local/www/packages/ipblocklist/Wlists/whitelist" -/usr/bin/perl convert.pl $Wiplist $Wiplistout +/usr/bin/perl /usr/local/www/packages/ipblocklist/convert.pl $Wiplist $Wiplistout done #echo "ipfw made" |