Lines 432-445
Link Here
|
432 |
fi |
432 |
fi |
433 |
RESULT=`$AMRESTORE -h -p $DEVICE 2> $TEMP/amrestore.out \ |
433 |
RESULT=`$AMRESTORE -h -p $DEVICE 2> $TEMP/amrestore.out \ |
434 |
| doonefile 2> $TEMP/onefile.errors` |
434 |
| doonefile 2> $TEMP/onefile.errors` |
|
|
435 |
# save previous filename to detect looping |
436 |
FILE_prev="$FILE" |
435 |
FILE=`grep restoring $TEMP/amrestore.out \ |
437 |
FILE=`grep restoring $TEMP/amrestore.out \ |
436 |
| sed 's/^.*restoring //'` |
438 |
| sed 's/^.*restoring //'` |
437 |
EOF=`grep "reached end of tape" $TEMP/amrestore.out` |
439 |
EOF=`grep "reached end of tape" $TEMP/amrestore.out` |
438 |
EOI=`grep "reached end of information" $TEMP/amrestore.out` |
440 |
EOI=`grep "reached end of information" $TEMP/amrestore.out` |
439 |
# amrestore: 0: restoring sundae._mnt_sol1_usr.19961127.1 |
441 |
# amrestore: 0: restoring sundae._mnt_sol1_usr.19961127.1 |
440 |
if [ X"$FILE" != X"" -a X"$RESULT" = X"0" ]; then |
442 |
if [ X"$FILE" != X"" -a X"$FILE" != X"$FILE_prev" -a X"$RESULT" = X"0" ]; then |
441 |
report "Checked $FILE" |
443 |
report "Checked $FILE" |
442 |
elif [ X"$FILE" != X"" -a X"$RESULT" = X"500" ]; then |
444 |
elif [ X"$FILE" != X"" -a X"$FILE" != X"$FILE_prev" -a X"$RESULT" = X"999" ]; then |
443 |
report "Skipped `cat $TEMP/onefile.cmd` check on partial dump $FILE" |
445 |
report "Skipped `cat $TEMP/onefile.cmd` check on partial dump $FILE" |
444 |
dump="`echo $FILE | cut -d'.' -f'1,2,3,4'`" |
446 |
dump="`echo $FILE | cut -d'.' -f'1,2,3,4'`" |
445 |
cat $TEMP/onefile.partnum >> $TEMP/$dump.parts |
447 |
cat $TEMP/onefile.partnum >> $TEMP/$dump.parts |