X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=usr_bin%2Fget_3ware;fp=usr_bin%2Fget_tw_cli;h=8896fef4dfb8a3ffdf15b24e21477152e8dee320;hb=1fc80a6c8bbe0b1845eba49332b1ad69952fa1e0;hp=1dbbdbeece40d5d1ec5515d4da27e2eb8aafef1a;hpb=74763f70feb0df41f8d1ef520794529cb90b8631;p=grml-scripts-core.git diff --git a/usr_bin/get_tw_cli b/usr_bin/get_3ware similarity index 56% rename from usr_bin/get_tw_cli rename to usr_bin/get_3ware index 1dbbdbe..8896fef 100755 --- a/usr_bin/get_tw_cli +++ b/usr_bin/get_3ware @@ -1,10 +1,10 @@ #!/bin/sh -# Filename: get_tw_cli +# Filename: get_3ware # Purpose: get 3ware RAID controller command line interface tool (tw_cli) # Authors: grml-team (grml.org), (c) Michael Prokop , Wolfram Schlich # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Thu Feb 09 12:20:30 CET 2006 [mika] +# Latest change: Sam Apr 14 10:59:02 CEST 2007 [mika] ################################################################################ # Notice: this file is based on: # Copyright 1999-2006 Gentoo Foundation @@ -19,14 +19,33 @@ else fi PN="tw_cli" -PV="9.3.0.2" -MY_P="${PN}-linux-x86-${PV}" -SRC_URI_BASE="http://www.3ware.com/download/Escalade9000Series/${PV}" -SRC_URI="${SRC_URI_BASE}/${PN}-linux-x86-${PV}.tgz" -DOWNLOAD_URL="http://www.3ware.com/support/windows_agree.asp?path=/download/Escalade9000Series/${PV}/${MY_P}.tgz" +PV="9.4.1" +MV="9.4.0.1" + +case `uname -m` in + x86_64) + ARCH="x86_64" + ;; + i?86) + ARCH="x86" + ;; + *) + echo "Unsupported architecture, must be x86 or amd64 - sorry." + exit 1 + ;; +esac + +MY_P="${PN}-linux-${ARCH}-${PV}" +URL_BASE="http://www.3ware.com/download/Escalade7000Series/${PV}" +CMDLINETOOL="${URL_BASE}/${PN}-linux-${ARCH}-${PV}.tgz" +MANAGEMENTTOOL="http://www.3ware.com/download/Escalade7000Series/${MV}/3DM2-Linux-${MV}.tgz" +AGREE1="http://www.3ware.com/support/windows_agree.asp?path=/download/Escalade7000Series/${PV}/${MY_P}.tgz" +AGREE2="http://www.3ware.com/support/windows_agree.asp?path=/download/Escalade7000SSeries/${MV}/3DM2-Linux-${MV}.tgz" +RELEASENOTES1="http://www.3ware.com/download/Escalade9650SE-Series/${PV}/${PV}_Release_Notes_Web.pdf" +RELEASENOTES2="http://www.3ware.com/download/Escalade9650SE-Series/${MV}/${MV}_Release_Notes_Web.pdf" info() { - einfo "get_tw_cli - get 3ware RAID controller command line interface tool (tw_cli)" + einfo "get_3ware - get 3ware RAID controller command line interface tool (tw_cli)" einfo "===========================================================================" einfo "" } @@ -47,11 +66,18 @@ supportedcards() { pkg_nofetch() { einfo "Please agree to the license at URL" einfo "" - einfo "\t${DOWNLOAD_URL}" + einfo "\t${AGREE1}" + einfo "\t${AGREE2}" + einfo "" + einfo "And then use the following URLs to download the tarballs:" + einfo "" + einfo "\t${CMDLINETOOL}" + einfo "\t${MANAGEMENTTOOL}" einfo "" - einfo "And then use the following URL to download the correct tarball:" + einfo "Release notes available at:" einfo "" - einfo "\t${SRC_URI}" + einfo "\t${RELEASENOTES1}" + einfo "\t${RELEASENOTES2}" einfo "" }