summaryrefslogtreecommitdiffstats
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:26 +0000
commit2076dc46f1878f933274702018c802bda6e4fc44 (patch)
tree2c2e76c544a183b61a011dfb6405b0edd65bf724
parentee9783e93e632158db9bff26365369535d6d1866 (diff)
downloadpfsense-2076dc46f1878f933274702018c802bda6e4fc44.zip
pfsense-2076dc46f1878f933274702018c802bda6e4fc44.tar.gz
Put a timeout of 30 seconds to aid with Ticket #3412
-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