summaryrefslogtreecommitdiffstats
path: root/etc/rc.update_bogons.sh
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-02-17 19:59:11 +0000
committerErmal <eri@pfsense.org>2014-02-17 20:00:49 +0000
commit64a093d65e9898fd6d0722432063cb3d3358d907 (patch)
tree25caa224c99dcc4d14165875c35a56f4a5b5c174 /etc/rc.update_bogons.sh
parent548564f21e9b56b618f8d0c774cc6e0cfb89ae85 (diff)
downloadpfsense-64a093d65e9898fd6d0722432063cb3d3358d907.zip
pfsense-64a093d65e9898fd6d0722432063cb3d3358d907.tar.gz
Put a timeout of 30 seconds to aid with Ticket #3412
Diffstat (limited to 'etc/rc.update_bogons.sh')
-rwxr-xr-xetc/rc.update_bogons.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/rc.update_bogons.sh b/etc/rc.update_bogons.sh
index ae85b0b..8672406 100755
--- a/etc/rc.update_bogons.sh
+++ b/etc/rc.update_bogons.sh
@@ -14,7 +14,7 @@ process_url() {
local filename=${url##*/}
local ext=${filename#*.}
- /usr/bin/fetch -q -o $file "${url}"
+ /usr/bin/fetch -a -T 30 -q -o $file "${url}"
if [ ! -f $file ]; then
echo "Could not download ${url}" | logger
@@ -84,9 +84,9 @@ if [ "$proc_error" != "" ]; then
exit
fi
-BOGON_V4_CKSUM=`/usr/bin/fetch -q -o - "${v4urlcksum}" | awk '{ print $4 }'`
+BOGON_V4_CKSUM=`/usr/bin/fetch -T 30 -q -o - "${v4urlcksum}" | awk '{ print $4 }'`
ON_DISK_V4_CKSUM=`md5 /tmp/bogons | awk '{ print $4 }'`
-BOGON_V6_CKSUM=`/usr/bin/fetch -q -o - "${v6urlcksum}" | awk '{ print $4 }'`
+BOGON_V6_CKSUM=`/usr/bin/fetch -T 30 -q -o - "${v6urlcksum}" | awk '{ print $4 }'`
ON_DISK_V6_CKSUM=`md5 /tmp/bogonsv6 | awk '{ print $4 }'`
if [ "$BOGON_V4_CKSUM" = "$ON_DISK_V4_CKSUM" ] || [ "$BOGON_V6_CKSUM" = "$ON_DISK_V6_CKSUM" ]; then
OpenPOWER on IntegriCloud