Imported Upstream version 2.5.1p3
[debian/amanda] / changer-src / chg-manual.sh.in
index 6dcfaa9d273132d20bb1eb437e53e29ea1824c04..205decfae4c2f2742e3ca7464fe5c5a05f65bd3e 100644 (file)
@@ -64,6 +64,12 @@ MAILER=@MAILER@
 ONLINEREGEX="ONLINE|READY|sense[_ ]key[(]0x0[)]|sense key error = 0|^er=0$|, mt_erreg: 0x0|^Current Driver State: at rest$"
 REPORTTO=`amgetconf$SUF mailto`
 tape=`amgetconf$SUF tapedev`
+
+if [ -z "$tape" ]; then
+  echo "<none> tapedev not specified in amanda.conf."
+  exit 2
+fi
+
 ORG=`amgetconf$SUF ORG`
 
 firstslot=1