From: Eric Bollengier Date: Thu, 31 Dec 2020 08:46:52 +0000 (+0100) Subject: Fix #7214 Adapt mtx-changer.conf for GNU cpio mt version X-Git-Tag: Release-11.3.2~937 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa01935a792a0113397d823d8d5a028a3e12d943;p=thirdparty%2Fbacula.git Fix #7214 Adapt mtx-changer.conf for GNU cpio mt version --- diff --git a/bacula/scripts/mtx-changer.conf b/bacula/scripts/mtx-changer.conf index 981efb9e3..8d5117002 100644 --- a/bacula/scripts/mtx-changer.conf +++ b/bacula/scripts/mtx-changer.conf @@ -67,6 +67,7 @@ idbglvl=10 # 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. +# Note, with mt GNU cpio, we use "drive status" output # OS=`uname` @@ -84,6 +85,11 @@ case ${OS} in if test $? -eq 1 ; then ready="drive status" fi + else + mt --version|grep "GNU cpio" >/dev/null 2>&1 + if test $? -eq 0 ; then + ready="drive status" + fi fi ;; esac