Project

General

Profile

« Previous | Next » 

Revision 4a41dff7

Added by Seth Mos over 13 years ago

Bail out without a valid IPv6 address so we don't generate a invalid dhcpv6 server config

View differences:

etc/rc.update_bogons.sh
21 21
/etc/rc.conf_mount_rw
22 22

  
23 23
/usr/bin/fetch -q -o /tmp/bogons "http://files.pfsense.org/mirrors/bogon-bn-nonagg.txt"
24
if [ ! -f /tmp/bogons ]; then
24
/usr/bin/fetch -q -o /tmp/bogonsv6 "http://files.pfsense.org/mirrors/fullbogons-ipv6.txt"
25
if [ ! -f /tmp/bogons ];
25 26
	echo "Could not download http://files.pfsense.org/mirrors/bogon-bn-nonagg.txt" | logger
26
	# Relaunch and sleep
27
	sh /etc/rc.update_bogons.sh & 
28
	exit
27
	dl_error="true"
29 28
fi
30

  
31
/usr/bin/fetch -q -o /tmp/bogonsv6 "http://files.pfsense.org/mirrors/fullbogons-ipv6.txt"
32 29
if [ ! -f /tmp/bogonsv6 ]; then
33 30
	echo "Could not download http://files.pfsense.org/mirrors/fullbogons-ipv6.txt" | logger
31
	dl_error="true"
32
fi
33

  
34
if [ "$dl_error" != "" ];then
34 35
	# Relaunch and sleep
35 36
	sh /etc/rc.update_bogons.sh & 
36 37
	exit
37 38
fi
38 39

  
39

  
40 40
BOGON_MD5=`/usr/bin/fetch -q -o - "http://files.pfsense.org/mirrors/bogon-bn-nonagg.txt.md5" | awk '{ print $4 }'`
41 41
ON_DISK_MD5=`md5 /tmp/bogons | awk '{ print $4 }'`
42 42
if [ "$BOGON_MD5" = "$ON_DISK_MD5" ]; then

Also available in: Unified diff