view 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 source

#!/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