Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
changeset 75:2e3ac70bdfc8
A fairly usable usage message
| author | Franz Glasner <hg@dom66.de> |
|---|---|
| date | Thu, 15 Aug 2019 16:07:53 +0200 |
| parents | 247d35f910ca |
| children | fea2ef3ff89a |
| files | bin/fjail |
| diffstat | 1 files changed, 24 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/fjail Thu Aug 15 15:58:24 2019 +0200 +++ b/bin/fjail Thu Aug 15 16:07:53 2019 +0200 @@ -6,6 +6,29 @@ VERSION="@@VERSION@@" +USAGE=" +USAGE: fjail [ OPTIONS ] COMMAND [ COMMAND OPTIONS ] [ ARG ... ] + +OPTIONS: + + -h Print this help message to stdout and exit + +COMMANDS: + + datasets [-u] PARENT CHILD + + Create ZFS datasets to be used within a jail + + PARENT must exist already and CHILD must not exist. + + -u Do not automatically mount newly created datasets + + privs MOUNTPOINT + + Adjust some Unix privileges to mounted jail datasets +" + + # Reset to standard umask umask 0022 @@ -125,7 +148,7 @@ while getopts "h" _opt ; do case ${_opt} in h) - echo "Usage: XXX TBD" + echo "${USAGE}" exit 0 ;; \?|:)
