Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
comparison sbin/ftjail @ 250:c4d835ccb4ae
Implement configure for symlinked skeletons.
Automatically decide if "etc" is a symlink to "skeleton/etc".
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sun, 11 Sep 2022 13:58:08 +0200 |
| parents | a91e1c5173cc |
| children | 7a6c03445ba1 |
comparison
equal
deleted
inserted
replaced
| 249:a91e1c5173cc | 250:c4d835ccb4ae |
|---|---|
| 622 ;; | 622 ;; |
| 623 \?) | 623 \?) |
| 624 exit 2; | 624 exit 2; |
| 625 ;; | 625 ;; |
| 626 *) | 626 *) |
| 627 echo "ERROR: option handling failed" >&2 | 627 echo "ERROR: option handling failed" 1>&2 |
| 628 exit 2 | 628 exit 2 |
| 629 ;; | 629 ;; |
| 630 esac | 630 esac |
| 631 done | 631 done |
| 632 | 632 |
| 635 # command-local options. | 635 # command-local options. |
| 636 # | 636 # |
| 637 shift $((OPTIND-1)) | 637 shift $((OPTIND-1)) |
| 638 OPTIND=1 | 638 OPTIND=1 |
| 639 | 639 |
| 640 test $# -gt 0 || { echo "ERROR: no command given" >&2; exit 2; } | 640 test $# -gt 0 || { echo "ERROR: no command given" 1>&2; exit 2; } |
| 641 | 641 |
| 642 command="$1" | 642 command="$1" |
| 643 shift | 643 shift |
| 644 | 644 |
| 645 case "${command}" in | 645 case "${command}" in |
| 656 command_interlink_tmpl "$@" | 656 command_interlink_tmpl "$@" |
| 657 ;; | 657 ;; |
| 658 populate-tmpl) | 658 populate-tmpl) |
| 659 command_populate_tmpl "$@" | 659 command_populate_tmpl "$@" |
| 660 ;; | 660 ;; |
| 661 configure) | |
| 662 echo "ERROR: use \`fjail configure' instead" 1>&2; | |
| 663 exit 2 | |
| 664 ;; | |
| 661 *) | 665 *) |
| 662 echo "ERROR: unknown command \`${command}'" >&2 | 666 echo "ERROR: unknown command \`${command}'" 1>&2 |
| 663 exit 2 | 667 exit 2 |
| 664 ;; | 668 ;; |
| 665 esac | 669 esac |
