diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-02-15 16:55:27 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-02-15 16:55:27 +0000 |
commit | 6c2d576c4e2b2f0940f190659c14afb7711e8a44 (patch) | |
tree | 90fa3413be04bd41d481abb0bf828c71d9df5085 | |
parent | fc19274f4d70cd4dd2531ca404f0b718fe228553 (diff) | |
download | alpine-conf-6c2d576c4e2b2f0940f190659c14afb7711e8a44.tar.bz2 alpine-conf-6c2d576c4e2b2f0940f190659c14afb7711e8a44.tar.xz |
setup-disk: added usage text
-rw-r--r-- | setup-disk.in | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/setup-disk.in b/setup-disk.in index 31dc5f7..0602cab 100644 --- a/setup-disk.in +++ b/setup-disk.in @@ -368,17 +368,34 @@ EOF install_mounted_root /mnt } +usage() { + cat <<__EOF__ +usage: setup-disk [-hr] [-k kernelflavor] [-o apkovl] [MOUNTPOINT] + +Install alpine on harddisk. + +options: + -h Show this help + -o Restore system from given apkovl file + -k Use kernelflavor instead of $KERNEL_FLAVOR + -r Enable software raid1 with single disk + +__EOF__ + exit 1 +} + KERNEL_FLAVOR=grsec case "$(uname -r)" in *-vs[0-9]*) KERNEL_FLAVOR=vserver;; esac # Parse args -while getopts "k:o:r" opt; do +while getopts "hk:o:r" opt; do case $opt in k) KERNEL_FLAVOR="$OPTARG";; r) USE_RAID=1;; o) APKOVL="$OPTARG";; + *) usage;; esac done shift $(( OPTIND - 1)) |