# SunOS No Additional Sense
# FreeBSD Current Driver State: at rest.
# Linux ONLINE
-# Note Debian has messed up their mt. When no tape is in the
-# drive it waits 2 minutes. When a tape is in the drive, it
-# prints user unfriendly output.
+# Note Debian has a different mt than the standard Linux version.
+# When no tape is in the drive it waits 2 minutes.
+# When a tape is in the drive, it prints user unfriendly output.
#
OS=`uname`
${MTX} -f $ctl status >${TMPFILE}
rtn=$?
cat ${TMPFILE} | grep " Storage Element [0-9]*:.*Full" | awk "{print \$3 \$4}" | sed "s/Full *\(:VolumeTag=\)*//"
+
+# If you want/can use IMPORT/EXPORT slots as normal slots within bacula
+# replace the previous line by this one
+# sed "s/ IMPORT\/EXPORT//" "${TMPFILE}" | grep " Storage Element [0-9]*:.*Full" | awk "{print \$3 \$4}" | sed "s/Full *\(:VolumeTag=\)*//"
#
# If you have a VXA PacketLoader and the above does not work, try
# turning it off and enabling the following line.