Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
comparison sbin/fjail @ 532:c615279bb797
Call mount and umount with absolute paths
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Thu, 05 Sep 2024 04:05:33 +0200 |
| parents | d5591ebc303d |
| children | 847ae246f3cc |
comparison
equal
deleted
inserted
replaced
| 531:07a916bd830c | 532:c615279bb797 |
|---|---|
| 402 echo "WARNING: devfs is already mounted - mounting skipped" | 402 echo "WARNING: devfs is already mounted - mounting skipped" |
| 403 fi | 403 fi |
| 404 else | 404 else |
| 405 if [ "${_opt_devfs}" = "yes" ]; then | 405 if [ "${_opt_devfs}" = "yes" ]; then |
| 406 echo "Mounting devfs" | 406 echo "Mounting devfs" |
| 407 mount -t devfs devfs "${_mp}/dev" | 407 /sbin/mount -t devfs devfs "${_mp}/dev" |
| 408 _umount_devfs="yes" | 408 _umount_devfs="yes" |
| 409 else | 409 else |
| 410 echo "ERROR: a working devfs is needed at \`{_mp}/dev' (use \`-d')" >&2 | 410 echo "ERROR: a working devfs is needed at \`{_mp}/dev' (use \`-d')" >&2 |
| 411 return 1 | 411 return 1 |
| 412 fi | 412 fi |
| 498 | 498 |
| 499 command_hostid | 499 command_hostid |
| 500 | 500 |
| 501 if [ "${_umount_devfs}" = "yes" ]; then | 501 if [ "${_umount_devfs}" = "yes" ]; then |
| 502 echo "Unmounting devfs" | 502 echo "Unmounting devfs" |
| 503 umount "${_mp}/dev" | 503 /sbin/umount "${_mp}/dev" |
| 504 fi | 504 fi |
| 505 } | 505 } |
| 506 | 506 |
| 507 | 507 |
| 508 # | 508 # |
