Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
comparison sbin/fjail @ 209:1b176ccd41b9
Comments
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sun, 21 Aug 2022 15:18:20 +0200 |
| parents | 0136dce2db22 |
| children | 4d7e00b500a1 |
comparison
equal
deleted
inserted
replaced
| 208:0136dce2db22 | 209:1b176ccd41b9 |
|---|---|
| 440 # the parent datasets mountpoint | 440 # the parent datasets mountpoint |
| 441 # | 441 # |
| 442 | 442 |
| 443 # Determine the mountpoint relative to the parent mountpoint | 443 # Determine the mountpoint relative to the parent mountpoint |
| 444 _relative_mp="${_mp#${_rootds_mountpoint}}" | 444 _relative_mp="${_mp#${_rootds_mountpoint}}" |
| 445 # Remove a trailing slash | 445 # Eventually remove a trailing slash |
| 446 _relative_mp="${_relative_mp%/}" | 446 _relative_mp="${_relative_mp%/}" |
| 447 # The real effective full mountpoint | |
| 447 _real_mp="${_mountpoint}${_relative_mp}" | 448 _real_mp="${_mountpoint}${_relative_mp}" |
| 448 if [ "${_dry_run}" = "yes" ]; then | 449 if [ "${_dry_run}" = "yes" ]; then |
| 449 echo "Would mount ${_name} on ${_real_mp}" | 450 echo "Would mount ${_name} on ${_real_mp}" |
| 450 else | 451 else |
| 451 mkdir -p "${_real_mp}" 1> /dev/null 2> /dev/null || \ | 452 mkdir -p "${_real_mp}" 1> /dev/null 2> /dev/null || \ |
