-# mt status output
-# SunOS No Additional Sense
-# FreeBSD Current Driver State: at rest.
-# Linux ONLINE
-# 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.
-# Note, with Ubuntu Gusty (8.04), there are two versions of mt,
-# so we attempt to figure out which one.
-#
-
-OS=`uname`
-case ${OS} in
- SunOS)
- ready="No Additional Sense"
- ;;
- FreeBSD)
- ready="Current Driver State: at rest."
- ;;
- Linux)
- ready="ONLINE"
- if test -f /etc/debian_version ; then
- mt --version|grep "mt-st"
- if test $? -eq 1 ; then
- ready="drive status"
- fi
- fi
- ;;
-esac