X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=changer-src%2Fchg-mtx.sh.in;h=3c8086d41b1ff69465f1dd43aab4452535be667d;hb=d3b2175e084f88c8736ad7073eacbf4670147aec;hp=ba9f724b5fb1d478b65bd1a56ea70ed30e077742;hpb=3ab887b9bc819a846c75dd7f2ee5d41fac22b19f;p=debian%2Famanda diff --git a/changer-src/chg-mtx.sh.in b/changer-src/chg-mtx.sh.in index ba9f724..3c8086d 100644 --- a/changer-src/chg-mtx.sh.in +++ b/changer-src/chg-mtx.sh.in @@ -1,4 +1,4 @@ -#!/bin/sh +#!@SHELL@ # # Exit Status: # 0 Alles Ok @@ -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