lintian doesn't like orphan packages with uploaders...
[debian/amanda] / changer-src / chg-disk.sh
index d8765845a604939743bd92740f4ecdd2f362f9d9..d8489d877773601b834135efdae960b51f914447 100644 (file)
@@ -2,6 +2,7 @@
 #
 # Amanda, The Advanced Maryland Automatic Network Disk Archiver
 # Copyright (c) 1991-1999 University of Maryland at College Park
+# Copyright (c) 2007-2012 Zmanda, Inc.  All Rights Reserved.
 # All Rights Reserved.
 #
 # Permission to use, copy, modify, distribute, and sell this software and its
@@ -73,17 +74,10 @@ amlibexecdir="@amlibexecdir@"
 PATH="$PATH:/usr/sbin:/sbin:/usr/ucb"
 export PATH
 
-USE_VERSION_SUFFIXES="@USE_VERSION_SUFFIXES@"
-if test "$USE_VERSION_SUFFIXES" = "yes"; then
-    SUF="-@VERSION@"
-else
-    SUF=
-fi
-
 MYNAME=$0
 
-TAPE=`amgetconf$SUF tapedev`
-if test X"$TAPE" == X""; then
+TAPE=`amgetconf tapedev`
+if test X"$TAPE" = X""; then
     echo `_ '<none> tapedev not specified in amanda.conf.'`
     exit 2
 fi
@@ -110,7 +104,7 @@ fi
 
 
 # need rwx access to directory of changer file
-CHANGERFILE=`amgetconf$SUF changerfile`
+CHANGERFILE=`amgetconf changerfile`
 conf_match=`expr "$CHANGERFILE" : .\*\.conf\$`
 if [ $conf_match -ge 6 ]; then
         CONFIGFILE=$CHANGERFILE
@@ -144,7 +138,7 @@ CLEANCOUNT=`cat $CLEANFILE`
 isinteger $CLEANCOUNT || { CLEANCOUNT=0 ; echo 0 > $CLEANFILE ; }
 
 FIRSTSLOT=1
-LASTSLOT=`amgetconf$SUF tapecycle`
+LASTSLOT=`amgetconf tapecycle`
 if test -r $CONFIGFILE; then
     . $CONFIGFILE
 fi