3 # This script will prepare a big dummy autochanger
11 mkdir $adir 2> /dev/null
13 # work with $1 slots by default
16 # create the autochanger configuration file
17 cat > $adir/conf <<EOF
35 nb_vol=`expr $nb_slot - 5`
36 # create $nb_vol volumes
37 for i in `seq 1 $nb_vol`; do
38 echo $i:vol$i >> $adir/barcodes
39 cp /dev/null $adir/slot$i
42 # make a cleaning tape
43 cln_slot=`expr $nb_vol + 1`
44 echo $cln_slot:CLN01 >> $adir/barcodes
45 cp /dev/null $adir/slot$cnl_slot
48 next_empty=`expr $cnl_slot + 1`
49 for i in `seq $next_empty $nb_slot`; do
50 echo $i: >> $adir/barcodes