projects
/
debian
/
amanda
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 2.5.1p3
[debian/amanda]
/
changer-src
/
chg-mtx.sh.in
diff --git
a/changer-src/chg-mtx.sh.in
b/changer-src/chg-mtx.sh.in
index 2966161da9c03652044c9b0fd5cc9a086c3d0c46..3c8086d41b1ff69465f1dd43aab4452535be667d 100644
(file)
--- 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`
myname=$0
tape=`amgetconf$SUF tapedev`
+if [ -z "$tape" ]; then
+ echo "<none> tapedev not specified in amanda.conf";
+ exit 2;
+fi
+
TAPE=`amgetconf$SUF changerdev`; export TAPE # for mtx command
TAPE=`amgetconf$SUF changerdev`; export TAPE # for mtx command
+if [ -z "$TAPE" ]; then
+ echo "<none> changerdev not specified in amanda.conf";
+ exit 2;
+fi
+
if [ "$tape" = "/dev/null" -o "$TAPE" = "/dev/null" ]; then
if [ "$tape" = "/dev/null" -o "$TAPE" = "/dev/null" ]; then
- echo "Both tapedev and changerdev must be specified in config file";
+ echo "
<none>
Both tapedev and changerdev must be specified in config file";
exit 2;
fi
exit 2;
fi