diff options
author | Ermal Luçi <ermal.luci@gmail.com> | 2013-01-16 05:15:27 -0800 |
---|---|---|
committer | Ermal Luçi <ermal.luci@gmail.com> | 2013-01-16 05:15:27 -0800 |
commit | 2d6a5d6a5d82ba301655e4966afb22260e12d255 (patch) | |
tree | 95a2bbf43591a59624446b9c7ffc31ca3d57ae7b /etc | |
parent | 254ebf8b0fb9a8042d154ab2206d7c4f3f16b487 (diff) | |
parent | c98951ce52c2de0a497580db06c494d86eb5159a (diff) | |
download | pfsense-2d6a5d6a5d82ba301655e4966afb22260e12d255.zip pfsense-2d6a5d6a5d82ba301655e4966afb22260e12d255.tar.gz |
Merge pull request #332 from bcyrill/patch-2
Update etc/rc.update_bogons.sh
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.update_bogons.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/rc.update_bogons.sh b/etc/rc.update_bogons.sh index e7e56e2..fcc2cd7 100755 --- a/etc/rc.update_bogons.sh +++ b/etc/rc.update_bogons.sh @@ -8,7 +8,7 @@ proc_error="" # Download and extract if necessary -function process_url() { +process_url() { local file=$1 local url=$2 local filename=${url##*/} @@ -27,7 +27,9 @@ function process_url() { /usr/bin/tar -xf $file.tmp -O > $file 2> /dev/null ;; tar.gz) - ;& + mv $file $file.tmp + /usr/bin/tar -xzf $file.tmp -O > $file 2> /dev/null + ;; tgz) mv $file $file.tmp /usr/bin/tar -xzf $file.tmp -O > $file 2> /dev/null |