Renmae get_tw_cli to get_3ware and updated it
authorMichael Prokop <mika@grml.org>
Sat, 14 Apr 2007 09:02:11 +0000 (11:02 +0200)
committerMichael Prokop <mika@grml.org>
Sat, 14 Apr 2007 09:02:11 +0000 (11:02 +0200)
debian/changelog
manpages/get_3ware.1 [new file with mode: 0644]
usr_bin/get_3ware [moved from usr_bin/get_tw_cli with 56% similarity]

index 696e0b6..8cf98bf 100644 (file)
@@ -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 <mika@grml.org>  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 (file)
index 0000000..35ca47e
--- /dev/null
@@ -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 <mika@grml.org>.
+.PP
+This manual page was written by Michael Prokop
+<mika@grml.org> for the grml project (but may be used by others).
similarity index 56%
rename from usr_bin/get_tw_cli
rename to usr_bin/get_3ware
index 1dbbdbe..8896fef 100755 (executable)
@@ -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 <mika@grml.org>, Wolfram Schlich <wschlich@gentoo.org>
 # 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 ""
 }