Am Dienstag, 13. Februar 2001 19:33 schrieb Jason Hollinden:

> > Ok, I've changed over to the new version that was suggested, and I have 
> also incorporated the suggestions of several people who's name escape 
> me (sorry).  This now has the 'mt offline' variable of the newest
> chg-zd-mtx, and tests whether your drives provides an 'offline', or an
> 'ONLINE' when changing from offline to online.  It is also in
> chg-zd-mtx.sh.in form, so it can be linked in with the configure step.
> 
> I would appreciate it if some people can test this, both with a large
> barcode reader, and also some more standard <10 slot drives.  I want to
> be sure that I didn't break a working script just to add my parts.

Here is a patch for an ADIC Faststor 7 DLT-Changer under linux (Suse 7.0)

2 important things

1.)  The text is Data Transfer Element: (without a number)
2.)   The text after the colon is \t\t, not "  "

This works for me quite fine, as it seems.

--------------------------------patched chg-zd-mtx--------------------------
26,27c26,27
< lastslot=6                    # Don't forget to leave out the cleaning tape.
< cleanslot=7                   # Which slot contains your cleaning tape?
---
> lastslot=7                    # Don't forget to leave out the cleaning tape.
> cleanslot=8                   # Which slot contains your cleaning tape?
29c29
< OFFLINE_BEFORE_UNLOAD=1               # Does your tape driver require a 
---
> OFFLINE_BEFORE_UNLOAD=0               # Does your tape driver require a 
43c43
< offlinestatus=1                       #### Set to 0 if 'mt status' gives an 
---
> offlinestatus=0                       #### Set to 0 if 'mt status' gives an 
119,120c119,120
<               usedslot=`$MTX status | tr -d "\t" |
<                       sed -n 's/Data Transfer Element:Empty/-1/p;s/Data 
Transfer Element:Full (Storage Element \(.\) Loaded)/\1/p'`
---
>               usedslot=`$MTX status |
>                       sed -n 's/Data Transfer Element 0:Empty/-1/p;s/Data 
Transfer Element 0:Full (Storage Element \(.\) Loaded)/\1/p'`
435c435
< 
--------------------------------------end of 
patch------------------------------------
-- 
Martin Koch                          Systemadministration

MOSAIC SOFTWARE AG    Feldstrasse 8     D-53340 Meckenheim
Tel. 02225/882-0                       Fax. 02225/882-201

Reply via email to