Update soundtest
[grml-scripts.git] / usr_bin / get_3ware
1 #!/bin/sh
2 # Filename:      get_3ware
3 # Purpose:       get 3ware RAID controller command line interface tool (tw_cli)
4 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>, Wolfram Schlich <wschlich@gentoo.org>
5 # Bug-Reports:   see http://grml.org/bugs/
6 # License:       This file is licensed under the GPL v2.
7 # Latest change: Sam Apr 14 10:59:02 CEST 2007 [mika]
8 ################################################################################
9 # Notice: this file is based on:
10 # Copyright 1999-2006 Gentoo Foundation
11 # Distributed under the terms of the GNU General Public License v2
12 # $Header: /var/www/www.gentoo.org/raw_cvs/gentoo-x86/sys-block/tw_cli/tw_cli-9.3.0.2.ebuild,v 1.1 2006/01/12 23:36:17 wschlich Exp $
13 ################################################################################
14
15 if [ -r /etc/grml/lsb-functions ] ; then
16   . /etc/grml/lsb-functions
17 else
18   alias einfo="echo"
19 fi
20
21 PN="tw_cli"
22 PV="9.4.1"
23 MV="9.4.0.1"
24
25 case `uname -m` in
26   x86_64)
27     ARCH="x86_64"
28     ;;
29   i?86)
30     ARCH="x86"
31     ;;
32   *)
33     echo "Unsupported architecture, must be x86 or amd64 - sorry."
34     exit 1
35     ;;
36 esac
37
38 MY_P="${PN}-linux-${ARCH}-${PV}"
39 URL_BASE="http://www.3ware.com/download/Escalade7000Series/${PV}"
40 CMDLINETOOL="${URL_BASE}/${PN}-linux-${ARCH}-${PV}.tgz"
41 MANAGEMENTTOOL="http://www.3ware.com/download/Escalade7000Series/${MV}/3DM2-Linux-${MV}.tgz"
42 AGREE1="http://www.3ware.com/support/windows_agree.asp?path=/download/Escalade7000Series/${PV}/${MY_P}.tgz"
43 AGREE2="http://www.3ware.com/support/windows_agree.asp?path=/download/Escalade7000SSeries/${MV}/3DM2-Linux-${MV}.tgz"
44 RELEASENOTES1="http://www.3ware.com/download/Escalade9650SE-Series/${PV}/${PV}_Release_Notes_Web.pdf"
45 RELEASENOTES2="http://www.3ware.com/download/Escalade9650SE-Series/${MV}/${MV}_Release_Notes_Web.pdf"
46
47 info() {
48         einfo "get_3ware - get 3ware RAID controller command line interface tool (tw_cli)"
49         einfo "==========================================================================="
50         einfo ""
51 }
52
53 supportedcards() {
54         einfo "This binary supports all current cards, including, but not limited to:"
55         einfo ""
56         einfo "PATA: 7210, 7410, 7450, 7810, 7850, 7000-2, 7500-4, 7500-8,"
57         einfo "      7500-12, 7006-2, 7506-4, 7506-4LP, 7506-8, 7506-12"
58         einfo ""
59         einfo "SATA: 8500-4, 8500-8, 8500-12, 8006-2, 8506-4, 8506-12,"
60         einfo "      8506-8MI, 8506-12MI, 9500S-4LP, 9500S-8, 9500S-12,"
61         einfo "      9500S-8MI, 9500S-12MI"
62         einfo "      9500S-8MI, 9500S-12MI"
63         einfo ""
64 }
65
66 pkg_nofetch() {
67         einfo "Please agree to the license at URL"
68         einfo ""
69         einfo "\t${AGREE1}"
70         einfo "\t${AGREE2}"
71         einfo ""
72         einfo "And then use the following URLs to download the tarballs:"
73         einfo ""
74         einfo "\t${CMDLINETOOL}"
75         einfo "\t${MANAGEMENTTOOL}"
76         einfo ""
77         einfo "Release notes available at:"
78         einfo ""
79         einfo "\t${RELEASENOTES1}"
80         einfo "\t${RELEASENOTES2}"
81         einfo ""
82 }
83
84 info
85 pkg_nofetch
86 supportedcards
87 # unp ${MY_P}.tgz
88
89 ## END OF FILE #################################################################