aboutsummaryrefslogtreecommitdiffstats
path: root/config/pfblockerng/pfblockerng.sh
diff options
context:
space:
mode:
authorBBcan177 <bbcan177@gmail.com>2014-12-07 23:40:07 -0500
committerBBcan177 <bbcan177@gmail.com>2014-12-07 23:40:07 -0500
commitf56760858bc66b0e8abf4151605cbc0a07ca7698 (patch)
tree97e761f7b960df2f699beb7feaf5d845aa764f34 /config/pfblockerng/pfblockerng.sh
parent4f1f068e4f60eddcab9385f1a2619696f8a1099e (diff)
downloadpfsense-packages-f56760858bc66b0e8abf4151605cbc0a07ca7698.tar.gz
pfsense-packages-f56760858bc66b0e8abf4151605cbc0a07ca7698.tar.bz2
pfsense-packages-f56760858bc66b0e8abf4151605cbc0a07ca7698.zip
Code Enhancements
Diffstat (limited to 'config/pfblockerng/pfblockerng.sh')
-rw-r--r--config/pfblockerng/pfblockerng.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/config/pfblockerng/pfblockerng.sh b/config/pfblockerng/pfblockerng.sh
index 335df167..2f622153 100644
--- a/config/pfblockerng/pfblockerng.sh
+++ b/config/pfblockerng/pfblockerng.sh
@@ -15,7 +15,6 @@
now=$(/bin/date +%m/%d/%y' '%T)
mtype=$(/usr/bin/uname -m);
-pfs_version="$(cut -c 1-3 /etc/version)"
# Application Paths
pathgrepcidr="/usr/pbi/pfblockerng-$mtype/bin/grepcidr"
@@ -268,7 +267,7 @@ if [ -e "$pfbsuppression" ] && [ -s "$pfbsuppression" ]; then
if [ ! -z "$data" -a ! -z "$cc" ]; then
# Loop thru each Updated List to remove Suppression and RFC1918 Addresses
if [ "$cc" == "suppressheader" ]; then
- echo "===[ Suppression Stats ]========================================"; echo
+ echo; echo "===[ Suppression Stats ]========================================"; echo
printf "%-20s %-10s %-10s %-10s %-10s\n" "List" "Pre" "RFC1918" "Suppress" "Masterfile"
echo "----------------------------------------------------------------"
exit
@@ -873,7 +872,7 @@ for i in $cc; do
awk 'FNR==NR{a[$0];next}!($0 in a)' $tempfile $masterfile > $tempfile2; mv -f $tempfile2 $masterfile
cut -d' ' -f2 $masterfile > $mastercat
fi
- rm -rf $pfborig$header*; rm -rf $pfbdeny$header*; rm -rf $pfbmatch$header*; rm -rf $pfbpermit$header*
+ rm -rf $pfborig$header*; rm -rf $pfbdeny$header*; rm -rf $pfbmatch$header*; rm -rf $pfbpermit$header*; rm -rf $pfbnative$header*
echo "The Following list has been REMOVED [ $header ]"
fi
echo