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