Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
diff bin/fjail @ 72:929051be7845
Begin a simple (ZFS-related) jail setup tool
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Thu, 15 Aug 2019 09:44:51 +0200 |
| parents | |
| children | 2e991a00035b |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/fjail Thu Aug 15 09:44:51 2019 +0200 @@ -0,0 +1,40 @@ +#!/bin/sh +# -*- indent-tabs-mode: nil; -*- +# @(#)$HGid$ + +VERSION=@@VERSION@@ + +# +# Global option handling +# +while getopts "h" _opt ; do + case ${_opt} in + h) + echo "Usage:" + exit 0 + ;; + \?|:) + exit 2; + ;; + esac +done + +# +# Reset the Shell's option handling system to prepare for handling +# command-local options. +# +shift $((OPTIND-1)) +OPTIND=1 + +command="$1" +shift + +case "${command}" in + test) + echo "TEST" + ;; + *) + echo "ERROR" >&2 + exit 2 + ;; +esac
