summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal Luçi <ermal.luci@gmail.com>2013-01-16 05:15:27 -0800
committerErmal Luçi <ermal.luci@gmail.com>2013-01-16 05:15:27 -0800
commit2d6a5d6a5d82ba301655e4966afb22260e12d255 (patch)
tree95a2bbf43591a59624446b9c7ffc31ca3d57ae7b /etc
parent254ebf8b0fb9a8042d154ab2206d7c4f3f16b487 (diff)
parentc98951ce52c2de0a497580db06c494d86eb5159a (diff)
downloadpfsense-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-xetc/rc.update_bogons.sh6
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
OpenPOWER on IntegriCloud