-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzfstool.sh
More file actions
executable file
·37 lines (26 loc) · 886 Bytes
/
zfstool.sh
File metadata and controls
executable file
·37 lines (26 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
set -e
toolname="${0##*/}" && toolname="${toolname%.sh}"
scriptrealpath="$(realpath "$0")"
scriptname="${scriptrealpath##*/}"
scriptrealdir="$(dirname "$scriptrealpath")"
scriptdir="${scriptrealdir}"
# Include utilities: 'basic', 'list', 'fkrt'
. "$scriptdir/utils/utils-basic.sh"
. "$scriptdir/utils/utils-info.sh"
. "$scriptdir/utils/utils-list.sh"
. "$scriptdir/utils/utils-file.sh"
. "$scriptdir/utils/utils-search.sh"
. "$scriptdir/utils/utils-fkrt.sh"
. "$scriptdir/utils/utils-plugin-loader.sh"
default_colors
info_prog_set "$scriptname"
###
### Begin code for zfstool
###
_co="$@" && for _i in $_co ; do case "$_i" in -q|--quiet) QUIET="yes" ; break ;; --) break ;; esac ; done
# load plugins from script dir and ~/.mkimage
info_prog_set "$scriptname:plugin-loader"
load_plugins "$scriptdir/filesystems/zfs" "tools"
info_prog_set "$scriptname"
zfstool "$@"