summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2007-10-01 01:02:45 +0000
committererdgeist <erdgeist@erdgeist.org>2007-10-01 01:02:45 +0000
commit70d10f08a7041bbabf94c2777c9f8e6264bbc731 (patch)
tree35e94f843329af69d41b15467826cdfa5ea9b91b
parentb215b3883c3fd88e591f4fb7eab8135dccdb32ad (diff)
archive switch now is -a for both ezjail-admin archive and ezjail-admin create
-rwxr-xr-xezjail-admin14
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
37ezjail_usage_ezjailadmin="Usage: ${ezjail_admin} [archive|config|console|create|delete|install|list|update] {params}" 37ezjail_usage_ezjailadmin="Usage: ${ezjail_admin} [archive|config|console|create|delete|install|list|update] {params}"
38ezjail_usage_install="Usage: ${ezjail_admin} install [-mps] [-h host] [-r release]" 38ezjail_usage_install="Usage: ${ezjail_admin} install [-mps] [-h host] [-r release]"
39ezjail_usage_create="Usage: ${ezjail_admin} create [-xbi] [-f flavour] [-r jailroot] [-s size] [-c bde|eli] [-C args] [-r archive] jailname jailip" 39ezjail_usage_create="Usage: ${ezjail_admin} create [-xbi] [-f flavour] [-r jailroot] [-s size] [-c bde|eli] [-C args] [-a archive] jailname jailip"
40ezjail_usage_delete="Usage: ${ezjail_admin} delete [-w] jailname" 40ezjail_usage_delete="Usage: ${ezjail_admin} delete [-w] jailname"
41ezjail_usage_update="Usage: ${ezjail_admin} update [-s sourcetree] [-i] [-pP]" 41ezjail_usage_update="Usage: ${ezjail_admin} update [-s sourcetree] [-i] [-pP]"
42ezjail_usage_config="Usage: ${ezjail_admin} config [-r run|norun] [-n newname] [-i attach|detach|fsck] jailname" 42ezjail_usage_config="Usage: ${ezjail_admin} config [-r run|norun] [-n newname] [-i attach|detach|fsck] jailname"
43ezjail_usage_console="Usage: ${ezjail_admin} console [-f] [-e command] jailname" 43ezjail_usage_console="Usage: ${ezjail_admin} console [-f] [-e command] jailname"
44ezjail_usage_archive="Usage: ${ezjail_admin} archive [-af] [-r archive] [-d archivedir] jailname [jailname...]" 44ezjail_usage_archive="Usage: ${ezjail_admin} archive [-Af] [-a archive] [-d archivedir] jailname [jailname...]"
45ezjail_usage_list="Usage: ${ezjail_admin} list" 45ezjail_usage_list="Usage: ${ezjail_admin} list"
46 46
47################################ 47################################
@@ -223,11 +223,11 @@ case "$1" in
223create) 223create)
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