X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=changer-src%2Fchg-mtx.sh.in;h=3c8086d41b1ff69465f1dd43aab4452535be667d;hb=34197d9f46a5f4e944378cbb65fca32ee0eec7b9;hp=2966161da9c03652044c9b0fd5cc9a086c3d0c46;hpb=12179dea039515c06168c0037d048566a3f623de;p=debian%2Famanda diff --git a/changer-src/chg-mtx.sh.in b/changer-src/chg-mtx.sh.in index 2966161..3c8086d 100644 --- a/changer-src/chg-mtx.sh.in +++ b/changer-src/chg-mtx.sh.in @@ -31,9 +31,19 @@ fi myname=$0 tape=`amgetconf$SUF tapedev` +if [ -z "$tape" ]; then + echo " tapedev not specified in amanda.conf"; + exit 2; +fi + TAPE=`amgetconf$SUF changerdev`; export TAPE # for mtx command +if [ -z "$TAPE" ]; then + echo " changerdev not specified in amanda.conf"; + exit 2; +fi + if [ "$tape" = "/dev/null" -o "$TAPE" = "/dev/null" ]; then - echo "Both tapedev and changerdev must be specified in config file"; + echo " Both tapedev and changerdev must be specified in config file"; exit 2; fi