X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fscripts%2Fdisk-changer.in;h=59ddd4a1052c04a882de97cfc2a1e4e0d481fb5d;hb=5821457bbef2394cbf205e2a527917d11c1b6e8b;hp=208bc95553ddf88e7fddd46830d0614b17cc9647;hpb=86138bc5550dda95c576f6a059c29134cf3f4a04;p=bacula%2Fbacula diff --git a/bacula/scripts/disk-changer.in b/bacula/scripts/disk-changer.in index 208bc95553..59ddd4a105 100644 --- a/bacula/scripts/disk-changer.in +++ b/bacula/scripts/disk-changer.in @@ -4,7 +4,7 @@ # # Written by Kern Sibbald # -# Copyright (C) 2000-2008 Free Software Foundation Europe e.V. +# Copyright (C) 2000-2009 Free Software Foundation Europe e.V. # # The main author of Bacula is Kern Sibbald, with contributions from # many others, a complete list can be found in the file AUTHORS. @@ -23,7 +23,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301, USA. # -# Bacula® is a registered trademark of John Walker. +# Bacula® is a registered trademark of Kern Sibbald. # The licensor of Bacula is the Free Software Foundation Europe # (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich, # Switzerland, email:ftf@fsfeurope.org. @@ -223,6 +223,11 @@ case $cmd in fi i=`expr $i + 1` done + # check if slot exists + if [ ! -f $dir/slot${slot} ] ; then + echo "source Element Address $slot is Empty" + exit 1 + fi if [ -f $dir/loaded${drive} ]; then ld=`cat $dir/loaded${drive}` else