From 1fc80a6c8bbe0b1845eba49332b1ad69952fa1e0 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Sat, 14 Apr 2007 11:02:11 +0200 Subject: [PATCH] Renmae get_tw_cli to get_3ware and updated it --- debian/changelog | 8 +++++++ manpages/get_3ware.1 | 17 ++++++++++++++ usr_bin/{get_tw_cli => get_3ware} | 48 ++++++++++++++++++++++++++++++--------- 3 files changed, 62 insertions(+), 11 deletions(-) create mode 100644 manpages/get_3ware.1 rename usr_bin/{get_tw_cli => get_3ware} (56%) diff --git a/debian/changelog b/debian/changelog index 696e0b6..8cf98bf 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +grml-scripts (0.9.40) unstable; urgency=low + + * Rename get_tw_cli into get_3ware as we support 3DM2 as well now, + updated the software versions and providing release-note URLs + as well. + + -- Michael Prokop Sat, 14 Apr 2007 10:59:21 +0200 + grml-scripts (0.9.39) unstable; urgency=low [Alexander Wirt] diff --git a/manpages/get_3ware.1 b/manpages/get_3ware.1 new file mode 100644 index 0000000..35ca47e --- /dev/null +++ b/manpages/get_3ware.1 @@ -0,0 +1,17 @@ +.TH get_3ware 1 +.SH "NAME" +get_3ware \- get 3ware RAID controller software +.SH SYNOPSIS +.B get_3ware +.SH DESCRIPTION +This manual page documents briefly the +.B get_3ware +command. 3ware is a simple shellscript which provides URLs +for downloading the tw_cli and 3DM2 tools of 3ware.com. +.SH OPTIONS +get_3ware does not support any options. +.SH AUTHOR +get_3ware was written by Michael Prokop . +.PP +This manual page was written by Michael Prokop + for the grml project (but may be used by others). 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 "" } -- 2.1.4