comparison 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
comparison
equal deleted inserted replaced
71:0f5a10326513 72:929051be7845
1 #!/bin/sh
2 # -*- indent-tabs-mode: nil; -*-
3 # @(#)$HGid$
4
5 VERSION=@@VERSION@@
6
7 #
8 # Global option handling
9 #
10 while getopts "h" _opt ; do
11 case ${_opt} in
12 h)
13 echo "Usage:"
14 exit 0
15 ;;
16 \?|:)
17 exit 2;
18 ;;
19 esac
20 done
21
22 #
23 # Reset the Shell's option handling system to prepare for handling
24 # command-local options.
25 #
26 shift $((OPTIND-1))
27 OPTIND=1
28
29 command="$1"
30 shift
31
32 case "${command}" in
33 test)
34 echo "TEST"
35 ;;
36 *)
37 echo "ERROR" >&2
38 exit 2
39 ;;
40 esac