+chmod 777 ${cwd}/scripts/cleanup-*tape ${cwd}/scripts/prepare-two-tapes
+rm -f /tmp/bac$$
+cp ${cwd}/bin/mtx-changer /tmp/bac$$
+sed "s%^MTX.*$%MTX=${4}%g" /tmp/bac$$ >${cwd}/bin/mtx-changer
+chmod 777 ${cwd}/bin/mtx-changer
+
+# get proper SD tape definitions
+touch ${cwd}/bin/tape_options
+if test x`uname` = xLinux ; then \
+ cp -f ${cwd}/scripts/linux_tape_options ${cwd}/bin/tape_options ; \
+fi
+if test x`uname` = xFreeBSD ; then \
+ cp -f ${cwd}/scripts/freebsd_tape_options ${cwd}/bin/tape_options ; \
+fi