From 055b3f0f53d2d6fd18444a9f2c76e3e0e0af6fbf Mon Sep 17 00:00:00 2001
From: Jake Guffey <jake.guffey@eprotex.com>
Date: Thu, 14 Jun 2012 10:41:04 -0400
Subject: [PATCH] bugfix

was filling jail_list with $jail_enable
---
 conf/type/__jail/gencode-remote | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/conf/type/__jail/gencode-remote b/conf/type/__jail/gencode-remote
index 7ebe26eb..2db3fac0 100755
--- a/conf/type/__jail/gencode-remote
+++ b/conf/type/__jail/gencode-remote
@@ -293,7 +293,7 @@ if [ "$onboot" = "true" ]; then
    #   if necessary
 
    cat <<EOF
-      jail_list="\$(grep '^jail_enable=' /etc/rc.conf | cut -d= -f2)"
+      jail_list="\$(grep '^jail_list=' /etc/rc.conf | cut -d= -f2)"
       if [ -z "\$jail_list" ]; then	# no jail_list line in rc.conf at all
          echo "jail_list=\"${name}\"" >>/etc/rc.conf
       else