diff options
author | bcyrill <cyrill@bannwart.info> | 2013-01-16 13:53:19 +0100 |
---|---|---|
committer | bcyrill <cyrill@bannwart.info> | 2013-01-16 13:53:19 +0100 |
commit | c98951ce52c2de0a497580db06c494d86eb5159a (patch) | |
tree | 937a8302487f0175fbf454f97c403afd6aca4fd2 /etc/rc.update_bogons.sh | |
parent | 99e991fd209c3574adf2727852757f9caad80431 (diff) | |
download | pfsense-c98951ce52c2de0a497580db06c494d86eb5159a.zip pfsense-c98951ce52c2de0a497580db06c494d86eb5159a.tar.gz |
Update etc/rc.update_bogons.sh
The used version of sh does not support the fallthrough operator and function keyword.
Diffstat (limited to 'etc/rc.update_bogons.sh')
-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 |