Deleted Added
full compact
jail (123342) jail (123344)
1#!/bin/sh
2#
1#!/bin/sh
2#
3# $FreeBSD: head/etc/rc.d/jail 123342 2003-12-09 08:32:43Z mtm $
3# $FreeBSD: head/etc/rc.d/jail 123344 2003-12-09 08:51:11Z mtm $
4#
5
6# PROVIDE: jail
7# REQUIRE: LOGIN
8# BEFORE: securelevel
9# KEYWORD: FreeBSD shutdown
10
11. /etc/rc.subr

--- 83 unchanged lines hidden (view full) ---

95 do
96 init_variables $_jail
97 if checkyesno jail_devfs; then
98 info "Mounting devfs on ${jail_devdir}"
99 devfs_mount_jail "${jail_devdir}" ${jail_ruleset}
100
101 # Transitional symlink for old binaries
102 if [ ! -L ${jail_devdir}/log ]; then
4#
5
6# PROVIDE: jail
7# REQUIRE: LOGIN
8# BEFORE: securelevel
9# KEYWORD: FreeBSD shutdown
10
11. /etc/rc.subr

--- 83 unchanged lines hidden (view full) ---

95 do
96 init_variables $_jail
97 if checkyesno jail_devfs; then
98 info "Mounting devfs on ${jail_devdir}"
99 devfs_mount_jail "${jail_devdir}" ${jail_ruleset}
100
101 # Transitional symlink for old binaries
102 if [ ! -L ${jail_devdir}/log ]; then
103 devfs_link ${jail_devdir} ../var/run/log log
103 __pwd="`pwd`"
104 cd "${jail_devdir}"
105 ln -sf ../var/run/log log
106 cd "$__pwd"
104 fi
105
107 fi
108
109 # XXX - It seems symlinks don't work when there
110 # is a devfs(5) device of the same name.
106 # Jail console output
111 # Jail console output
107 devfs_link ${jail_devdir} ../var/log/console console
112 # __pwd="`pwd`"
113 # cd "${jail_devdir}"
114 # ln -sf ../var/log/console console
115 # cd "$__pwd"
108 fi
109 if checkyesno jail_fdescfs; then
110 info "Mounting fdescfs on ${jail_fdescdir}"
111 mount -t fdescfs fdesc "${jail_fdescdir}"
112 fi
113 if checkyesno jail_procfs; then
114 info "Mounting procfs onto ${jail_procdir}"
115 if [ -d ${jail_procdir} ] ; then

--- 46 unchanged lines hidden ---
116 fi
117 if checkyesno jail_fdescfs; then
118 info "Mounting fdescfs on ${jail_fdescdir}"
119 mount -t fdescfs fdesc "${jail_fdescdir}"
120 fi
121 if checkyesno jail_procfs; then
122 info "Mounting procfs onto ${jail_procdir}"
123 if [ -d ${jail_procdir} ] ; then

--- 46 unchanged lines hidden ---