diff options
author | Renato Botelho <renato@netgate.com> | 2016-03-28 15:28:33 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-03-28 15:28:33 -0300 |
commit | 0ae8b6dbdbe106bbb33c1fb62ae4b6479df81072 (patch) | |
tree | 149ae8ed2422afc781ea6fc9f492cf4aa31b1767 /config/pfblockerng/pfblockerng.sh | |
parent | 19f972e1ce5c9d9b66fb6bcda39f83ad8623df9d (diff) | |
parent | 5481da2b7ac2f73870e04d6610eaa93d180c2a84 (diff) | |
download | pfsense-packages-0ae8b6dbdbe106bbb33c1fb62ae4b6479df81072.tar.gz pfsense-packages-0ae8b6dbdbe106bbb33c1fb62ae4b6479df81072.tar.bz2 pfsense-packages-0ae8b6dbdbe106bbb33c1fb62ae4b6479df81072.zip |
Merge pull request #1243 from BBcan177/patch-1
Diffstat (limited to 'config/pfblockerng/pfblockerng.sh')
-rw-r--r-- | config/pfblockerng/pfblockerng.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/config/pfblockerng/pfblockerng.sh b/config/pfblockerng/pfblockerng.sh index ace6dbfe..c0b4433f 100644 --- a/config/pfblockerng/pfblockerng.sh +++ b/config/pfblockerng/pfblockerng.sh @@ -1,6 +1,6 @@ #!/bin/sh # pfBlockerNG IP Reputation Script - By BBcan177@gmail.com - 04-12-14 -# Copyright (c) 2015 BBcan177@gmail.com +# Copyright (c) 2015-2016 BBcan177@gmail.com # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License Version 2 as @@ -779,7 +779,7 @@ processet() { *) echo "${i}" >> "${etdir}/ET_Unknown.txt";; esac done < "${pfborig}${alias}.orig" - data="$(ls ${etdir})" + data="$(ls ${etdir} | sed 's/\.txt//')" printf "%-10s %-25s\n" ' Action' 'Category' echo '-------------------------------------------' @@ -787,13 +787,13 @@ processet() { case "${etblock}" in *$list*) printf "%-10s %-25s\n" ' Block: ' "${list}" - cat "${etdir}/${list}" >> "${tempfile}" + cat "${etdir}/${list}.txt" >> "${tempfile}" ;; esac case "${etmatch}" in *$list*) printf "%-10s %-25s\n" ' Match: ' "${list}" - cat "${etdir}/${list}" >> "${tempfile2}" + cat "${etdir}/${list}.txt" >> "${tempfile2}" ;; esac done @@ -978,4 +978,4 @@ case "${1}" in *) ;; esac -exitnow
\ No newline at end of file +exitnow |