ccnx: fixing bug with multicast face removal in ccnd-autoconfig script
diff --git a/net/ccnx/Portfile b/net/ccnx/Portfile
index 56797e8..bdc7409 100644
--- a/net/ccnx/Portfile
+++ b/net/ccnx/Portfile
@@ -12,7 +12,7 @@
 homepage                http://www.ccnx.org/
 license                 GPL-2+ LGPL-2.1+
 version                 0.6.2
-revision                4
+revision                5
 epoch                   0
 
 categories              net ccnx
diff --git a/net/ccnx/files/autoconfig.patch b/net/ccnx/files/autoconfig.patch
index 50cefa6..f4275c1 100644
--- a/net/ccnx/files/autoconfig.patch
+++ b/net/ccnx/files/autoconfig.patch
@@ -46,7 +46,7 @@
  
 diff --git csrc/util/ccnd-autoconfig.sh csrc/util/ccnd-autoconfig.sh
 new file mode 100755
-index 0000000..2bef939
+index 0000000..48ec9fc
 --- /dev/null
 +++ csrc/util/ccnd-autoconfig.sh
 @@ -0,0 +1,55 @@
@@ -89,7 +89,7 @@
 +   # Try to use DNS search list to get default route information
 +   ccndc srv
 +
-+   if [ ! $MCAST_EXISTED ]; then
++   if [ $MCAST_EXISTED -eq 1 ]; then
 +      # destroying multicast face
 +      ccndstatus | grep 224.0.23.170:59695 | awk '{print $2}' | xargs ccndc destroy face
 +   fi
@@ -100,7 +100,7 @@
 +echo "$info" | xargs ccndc add / udp
 +echo "$info" | xargs ccndc add /autoconf-route udp
 +
-+if [ ! $MCAST_EXISTED ]; then
++if [ $MCAST_EXISTED -eq 1 ]; then
 +   # destroying multicast face
 +   ccndstatus | grep 224.0.23.170:59695 | awk '{print $2}' | xargs ccndc destroy face
 +fi