# HG changeset patch # User Franz Glasner # Date 1565855091 -7200 # Node ID 929051be78452b448a15c92db9b13f4d42ace3a4 # Parent 0f5a1032651354f8b9fd364e39b1c93be3e54dd1 Begin a simple (ZFS-related) jail setup tool diff -r 0f5a10326513 -r 929051be7845 bin/fjail --- /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