Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jul 2007 22:21:17 +0200
From:      Jeremie Le Hen <jeremie@le-hen.org>
To:        John Baldwin <jhb@freebsd.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: RFC for wider rc.conf.d/ for jails
Message-ID:  <20070730202117.GB11947@obiwan.tataz.chchile.org>
In-Reply-To: <20070730201604.GA11947@obiwan.tataz.chchile.org>
References:  <20070617225824.GA88370@obiwan.tataz.chchile.org> <200707160917.51941.jhb@freebsd.org> <20070730201604.GA11947@obiwan.tataz.chchile.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--pf9I7BMVVzbSWLtt
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Mon, Jul 30, 2007 at 10:16:04PM +0200, Jeremie Le Hen wrote:
> Sorry for the late reply.  I've slightly modified etc/rc.d/jail to
> handle etc/jail/<name>.

And well, yes, the patch :).

-- 
Jeremie Le Hen
< jeremie at le-hen dot org >< ttz at chchile dot org >

--pf9I7BMVVzbSWLtt
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="etc_jail.diff"

Index: jail
===================================================================
RCS file: /mnt/octobre/space/freebsd-cvs/src/etc/rc.d/jail,v
retrieving revision 1.37
diff -u -p -r1.37 jail
--- jail	24 May 2007 06:01:06 -0000	1.37
+++ jail	29 Jul 2007 22:50:28 -0000
@@ -27,6 +27,13 @@ init_variables()
 		return
 	fi
 
+	if [ -f "/etc/jail/$_j" ]; then
+		eval `awk -v j="$_j" \
+		    '/^[[:blank:]]*[a-zA-Z_][a-zA-Z0-9_]*=/ {
+			    print sprintf("jail_%s_%s", j, $0)
+		    }' "/etc/jail/$_j"`
+	fi
+
 	eval _rootdir=\"\$jail_${_j}_rootdir\"
 	_devdir="${_rootdir}/dev"
 	_fdescdir="${_devdir}/fd"

--pf9I7BMVVzbSWLtt--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070730202117.GB11947>