summaryrefslogtreecommitdiffstats
path: root/etc/rc.update_bogons.sh
diff options
context:
space:
mode:
authorbcyrill <cyrill@bannwart.info>2013-01-16 13:53:19 +0100
committerbcyrill <cyrill@bannwart.info>2013-01-16 13:53:19 +0100
commitc98951ce52c2de0a497580db06c494d86eb5159a (patch)
tree937a8302487f0175fbf454f97c403afd6aca4fd2 /etc/rc.update_bogons.sh
parent99e991fd209c3574adf2727852757f9caad80431 (diff)
downloadpfsense-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-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