use Getopt::Long;
+delete @ENV{'IFS', 'CDPATH', 'ENV', 'BASH_ENV', 'PATH'};
+$ENV{'PATH'} = "/usr/bin:/usr/sbin:/sbin:/bin";
+
$pname = "rth-changer";
$prefix="@prefix@";
}
$tapeDevice=`$sbindir/amgetconf$SUF tapedev`;
+die "tapedev not found in amanda.conf"
+ if !$tapeDevice or $tapeDevice eq "" or
+ $tapeDevice =~ m/no such parameter/;
sub getCurrentTape {