summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2009-06-10 18:18:14 +0000
committered <ed@FreeBSD.org>2009-06-10 18:18:14 +0000
commite6cbda90b2d0dd4e73f8503be4635f31da263927 (patch)
tree8242580f5eca327736be5ffcd79eee5f60eb4ab8 /etc
parenta18572086b4c47debcc47d209784d0734f4fcdea (diff)
downloadFreeBSD-src-e6cbda90b2d0dd4e73f8503be4635f31da263927.zip
FreeBSD-src-e6cbda90b2d0dd4e73f8503be4635f31da263927.tar.gz
Small cleanups to the jail script:
- Remove redundant debugging of consolelog. - Use `while :', instead of `while [ true ]'. This is done in other places as well. Submitted by: Jille Timmermans <jille quis cx> (not jilles) Reviewed by: jilles
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.d/jail7
1 files changed, 3 insertions, 4 deletions
diff --git a/etc/rc.d/jail b/etc/rc.d/jail
index a587eab..830cd5f 100755
--- a/etc/rc.d/jail
+++ b/etc/rc.d/jail
@@ -52,7 +52,7 @@ init_variables()
eval _exec_start=\"\${jail_${_j}_exec_start:-${jail_exec_start}}\"
i=1
- while [ true ]; do
+ while : ; do
eval _exec_afterstart${i}=\"\${jail_${_j}_exec_afterstart${i}:-\${jail_exec_afterstart${i}}}\"
[ -z "$(eval echo \"\$_exec_afterstart${i}\")" ] && break
i=$((i + 1))
@@ -132,7 +132,6 @@ init_variables()
debug "$_j procdir: $_procdir"
debug "$_j ruleset: $_ruleset"
debug "$_j fstab: $_fstab"
- debug "$_j consolelog: $_consolelog"
i=0
while : ; do
@@ -147,7 +146,7 @@ init_variables()
debug "$_j exec start: $_exec_start"
i=1
- while [ true ]; do
+ while : ; do
eval out=\"\${_exec_afterstart${i}:-''}\"
if [ -z "$out" ]; then
@@ -642,7 +641,7 @@ jail_start()
if [ "$?" -eq 0 ] ; then
_jail_id=$(head -1 ${_tmp_jail})
i=1
- while [ true ]; do
+ while : ; do
eval out=\"\${_exec_afterstart${i}:-''}\"
if [ -z "$out" ]; then
OpenPOWER on IntegriCloud