Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1583785
 поиск   регистрация   авторизация 
 
Группа :: Архивирование/Резервное копирование
Пакет: amanda

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

Патч: amanda-2.4.4-alt-request.patch


diff -ruN amanda-2.4.4.orig/changer-src/chg-manual.sh.in amanda-2.4.4/changer-src/chg-manual.sh.in
--- amanda-2.4.4.orig/changer-src/chg-manual.sh.in	2002-11-05 04:37:52 +0300
+++ amanda-2.4.4/changer-src/chg-manual.sh.in	2003-08-28 08:55:33 +0400
@@ -81,18 +81,18 @@
 accesscount=`cat $accessfile`
 slot=`cat $slotfile`
 
-request() {
+request-tape() {
 	echo "insert tape into slot $1 and press return" >/dev/tty
 	read ANSWER </dev/tty
 }
 
 ###
 # If $changerfile exists, source it into this script.  One reason is to
-# override the request() function above which gets called to request
-# that a tape be mounted.  Here is an alternate versions of request()
+# override the request-tape() function above which gets called to request
+# that a tape be mounted.  Here is an alternate versions of request-tape()
 # that does things more asynchronous:
 #
-#  request() {
+#  request-tape() {
 #	# Send E-mail about the mount request and wait for the drive
 #	# to go ready by checking the status once a minute.  Repeat
 #       # the E-mail once an hour in case it gets lost.
@@ -243,7 +243,7 @@
 	else
 		echo "     -> load   $load" >> $logfile
 		while [ -z "$used" ]; do
-			request $load
+			request-tape $load
 			echo "     -> rewind $tape" >> $logfile
 			$MT $MTF $tape rewind >> $logfile 2>&1
 			echo "     -> status $tape" >> $logfile
 
design & coding: Vladimir Lettiev aka crux © 2004-2005