]> git.sur5r.net Git - bacula/bacula/commitdiff
Modify mtx-changer.in script to return slot:barcode for
authorKern Sibbald <kern@sibbald.com>
Thu, 7 Jul 2005 14:18:32 +0000 (14:18 +0000)
committerKern Sibbald <kern@sibbald.com>
Thu, 7 Jul 2005 14:18:32 +0000 (14:18 +0000)
  Volumes that are loaded in the drives.

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2178 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/scripts/mtx-changer.in

index adf500ca99f9706f33b07bd6d81e72b9c26af257..70703816eba0217a1069b7b1470f5299ed91650f 100644 (file)
@@ -132,7 +132,7 @@ case $cmd in
       ${MTX} -f $ctl status >${TMPDIR}/mtx.$$
       rtn=$?
       cat ${TMPDIR}/mtx.$$ | grep " *Storage Element [0-9]*:.*Full" | awk "{print \$3 \$4}" | sed "s/Full *\(:VolumeTag=\)*//"
-      cat ${TMPDIR}/mtx.$$ | grep "^Data Transfer Element [0-9]*:Full (Storage Element [0-9]*Loaded" | awk '{printf "%s:%s\n",$7,$10}'
+      cat ${TMPDIR}/mtx.$$ | grep "^Data Transfer Element [0-9]*:Full (Storage Element [0-9]" | awk '{printf "%s:%s\n",$7,$10}'
 #
 # If you have a VXA PacketLoader and the above does not work, try
 #  turning it off and enabling the following line.