diff options
-rwxr-xr-x | ezjail-admin | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ezjail-admin b/ezjail-admin index 36b50e6..48db998 100755 --- a/ezjail-admin +++ b/ezjail-admin | |||
@@ -36,12 +36,12 @@ case `uname -p` in amd64) ezjail_dirlist="${ezjail_dirlist} usr/lib32";; esac | |||
36 | # Synopsis messages | 36 | # Synopsis messages |
37 | ezjail_usage_ezjailadmin="Usage: ${ezjail_admin} [archive|config|console|create|delete|install|list|update] {params}" | 37 | ezjail_usage_ezjailadmin="Usage: ${ezjail_admin} [archive|config|console|create|delete|install|list|update] {params}" |
38 | ezjail_usage_install="Usage: ${ezjail_admin} install [-mps] [-h host] [-r release]" | 38 | ezjail_usage_install="Usage: ${ezjail_admin} install [-mps] [-h host] [-r release]" |
39 | ezjail_usage_create="Usage: ${ezjail_admin} create [-xbi] [-f flavour] [-r jailroot] [-s size] [-c bde|eli] [-C args] [-r archive] jailname jailip" | 39 | ezjail_usage_create="Usage: ${ezjail_admin} create [-xbi] [-f flavour] [-r jailroot] [-s size] [-c bde|eli] [-C args] [-a archive] jailname jailip" |
40 | ezjail_usage_delete="Usage: ${ezjail_admin} delete [-w] jailname" | 40 | ezjail_usage_delete="Usage: ${ezjail_admin} delete [-w] jailname" |
41 | ezjail_usage_update="Usage: ${ezjail_admin} update [-s sourcetree] [-i] [-pP]" | 41 | ezjail_usage_update="Usage: ${ezjail_admin} update [-s sourcetree] [-i] [-pP]" |
42 | ezjail_usage_config="Usage: ${ezjail_admin} config [-r run|norun] [-n newname] [-i attach|detach|fsck] jailname" | 42 | ezjail_usage_config="Usage: ${ezjail_admin} config [-r run|norun] [-n newname] [-i attach|detach|fsck] jailname" |
43 | ezjail_usage_console="Usage: ${ezjail_admin} console [-f] [-e command] jailname" | 43 | ezjail_usage_console="Usage: ${ezjail_admin} console [-f] [-e command] jailname" |
44 | ezjail_usage_archive="Usage: ${ezjail_admin} archive [-af] [-r archive] [-d archivedir] jailname [jailname...]" | 44 | ezjail_usage_archive="Usage: ${ezjail_admin} archive [-Af] [-a archive] [-d archivedir] jailname [jailname...]" |
45 | ezjail_usage_list="Usage: ${ezjail_admin} list" | 45 | ezjail_usage_list="Usage: ${ezjail_admin} list" |
46 | 46 | ||
47 | ################################ | 47 | ################################ |
@@ -223,11 +223,11 @@ case "$1" in | |||
223 | create) | 223 | create) |
224 | # Clean variables, prevent polution | 224 | # Clean variables, prevent polution |
225 | unset ezjail_rootdir ezjail_flavour ezjail_softlink ezjail_image ezjail_imagetype ezjail_imageparams ezjail_imagesize ezjail_device ezjail_config ezjail_attachparams ezjail_exists ezjail_attachblocking ezjail_forceblocking ezjail_sourcedevice ezjail_rootdirempty ezjail_fromarchive | 225 | unset ezjail_rootdir ezjail_flavour ezjail_softlink ezjail_image ezjail_imagetype ezjail_imageparams ezjail_imagesize ezjail_device ezjail_config ezjail_attachparams ezjail_exists ezjail_attachblocking ezjail_forceblocking ezjail_sourcedevice ezjail_rootdirempty ezjail_fromarchive |
226 | shift; while getopts :f:r:s:xbic:C:r: arg; do case ${arg} in | 226 | shift; while getopts :f:r:s:xbic:C:a: arg; do case ${arg} in |
227 | x) ezjail_exists="YES";; | 227 | x) ezjail_exists="YES";; |
228 | r) ezjail_rootdir="${OPTARG}";; | 228 | r) ezjail_rootdir="${OPTARG}";; |
229 | f) ezjail_flavour="${OPTARG}";; | 229 | f) ezjail_flavour="${OPTARG}";; |
230 | r) ezjail_fromarchive="${OPTARG}";; | 230 | a) ezjail_fromarchive="${OPTARG}";; |
231 | c) ezjail_imagetype="${OPTARG}";; | 231 | c) ezjail_imagetype="${OPTARG}";; |
232 | C) ezjail_imageparams="${OPTARG}";; | 232 | C) ezjail_imageparams="${OPTARG}";; |
233 | b) ezjail_forceblocking="YES";; | 233 | b) ezjail_forceblocking="YES";; |
@@ -705,11 +705,11 @@ archive) | |||
705 | # Clean variables, prevent polution | 705 | # Clean variables, prevent polution |
706 | unset ezjail_archive ezjail_force ezjail_archivealljails | 706 | unset ezjail_archive ezjail_force ezjail_archivealljails |
707 | 707 | ||
708 | shift; while getopts :afr:d: arg; do case ${arg} in | 708 | shift; while getopts :Afa:d: arg; do case ${arg} in |
709 | f) ezjail_force="YES";; | 709 | f) ezjail_force="YES";; |
710 | r) ezjail_archive=${OPTARG};; | 710 | a) ezjail_archive=${OPTARG};; |
711 | d) ezjail_archivedir=${OPTARG};; | 711 | d) ezjail_archivedir=${OPTARG};; |
712 | a) ezjail_archivealljails="YES";; | 712 | A) ezjail_archivealljails="YES";; |
713 | ?) exerr ${ezjail_usage_archive};; | 713 | ?) exerr ${ezjail_usage_archive};; |
714 | esac; done; shift $(( ${OPTIND} - 1 )) | 714 | esac; done; shift $(( ${OPTIND} - 1 )) |
715 | 715 | ||