X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=changer-src%2Fchg-chio.pl;fp=changer-src%2Fchg-chio.pl;h=e97ae9a62ed0cee82462bee69f82c48aa72cd2a6;hb=fd48f3e498442f0cbff5f3606c7c403d0566150e;hp=56bb35875f2b7a4d15fe0ad822235780abbbe331;hpb=96f35b20267e8b1a1c846d476f27fcd330e0b018;p=debian%2Famanda diff --git a/changer-src/chg-chio.pl b/changer-src/chg-chio.pl index 56bb358..e97ae9a 100644 --- a/changer-src/chg-chio.pl +++ b/changer-src/chg-chio.pl @@ -63,17 +63,11 @@ $prefix=$prefix; # avoid warnings about possible typo $exec_prefix="@exec_prefix@"; $exec_prefix=$exec_prefix; # Ditto $sbindir="@sbindir@"; -if ( "@USE_VERSION_SUFFIXES@" eq "yes" ) { - $SUF = "-@VERSION@"; -} else { - $SUF = ""; -} - -chomp ($tapeDevice = `$sbindir/amgetconf$SUF tapedev 2>&1`); +chomp ($tapeDevice = `$sbindir/amgetconf tapedev 2>&1`); die "tapedev not found in amanda.conf" if !$tapeDevice or $tapeDevice eq "" or $tapeDevice =~ m/no such parameter/; -chomp ($changerDevice = `$sbindir/amgetconf$SUF changerdev 2>&1`); +chomp ($changerDevice = `$sbindir/amgetconf changerdev 2>&1`); chomp $changerDevice; die "changerdev not found in amanda.conf" if !$changerDevice or $changerDevice eq "" or @@ -374,8 +368,8 @@ $nr_tapes = &getTapeStatus(); # Before we do anything with the tape changer we'll have to rewind the tape # -if (-x "$sbindir/ammt$SUF") { - $MT="$sbindir/ammt$SUF"; +if (-x "$sbindir/ammt") { + $MT="$sbindir/ammt"; $MTF="-f"; } elsif (-x "@MT@") { $MT="@MT@";