aboutsummaryrefslogtreecommitdiff
path: root/ports-mgmt/pkg_jail/files/pkg_jail
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2017-07-29 06:02:24 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2017-07-29 06:02:24 +0000
commit25ffbfe1c726b2a08ba4514a4df6d9e60cd92a7e (patch)
tree613355322d95638cb4ea8fb0dc21895b1c77d432 /ports-mgmt/pkg_jail/files/pkg_jail
parent7b2f9de1350bfe6d8aa953e102e03707c547841a (diff)
downloadports-25ffbfe1c726b2a08ba4514a4df6d9e60cd92a7e.tar.gz
ports-25ffbfe1c726b2a08ba4514a4df6d9e60cd92a7e.zip
Notes
Diffstat (limited to 'ports-mgmt/pkg_jail/files/pkg_jail')
-rw-r--r--ports-mgmt/pkg_jail/files/pkg_jail34
1 files changed, 32 insertions, 2 deletions
diff --git a/ports-mgmt/pkg_jail/files/pkg_jail b/ports-mgmt/pkg_jail/files/pkg_jail
index 0baba764d9a7..94d07abe0e47 100644
--- a/ports-mgmt/pkg_jail/files/pkg_jail
+++ b/ports-mgmt/pkg_jail/files/pkg_jail
@@ -2,6 +2,36 @@
#
# $FreeBSD$
#
+# Copyright (c) 2001-2017 by Dirk Meyer. All rights reserved.
+# Im Grund 4, 34317 Habichtswald, Germany
+# Email: dirk.meyer@dinoex.sub.org
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in the
+# documentation and/or other materials provided with the distribution.
+# 3. Neither the name of the author nor the names of any co-contributors
+# may be used to endorse or promote products derived from this software
+# without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+# SUCH DAMAGE.
+#
+# -------------------------------------------------------------------------
+#
. /etc/rc.subr
#
case "$0" in
@@ -200,12 +230,12 @@ pkg_jail_umount()
"${pkg_jail_dir}/dev" \
do
- fstab=`fgrep "${dir}" /etc/fstab`
+ fstab=`fgrep "${dir}" /etc/fstab`
if test -n "${fstab}"
then
continue
fi
- mount=`mount | fgrep "${dir}"`
+ mount=`mount | fgrep "${dir}"`
if test -n "${mount}"
then
umount "${dir}"