Bugfixes.

This commit is contained in:
Sergey Poznyakoff
2005-05-27 12:03:39 +00:00
parent e5e43aa7a4
commit 9d5fd390dc

View File

@@ -172,17 +172,18 @@ init_common() {
if [ \( x"$BACKUP_DIRS" = x \) -a \( x"$BACKUP_FILES" = x \) ]; then if [ \( x"$BACKUP_DIRS" = x \) -a \( x"$BACKUP_FILES" = x \) ]; then
bailout "Neither BACKUP_DIRS nor BACKUP_FILES specified" bailout "Neither BACKUP_DIRS nor BACKUP_FILES specified"
fi fi
if [ -n "$RSH" ]; then if [ -z "$RSH" ]; then
RSH=rsh RSH=rsh
MT_RSH_OPTION= MT_RSH_OPTION=
else else
MT_RSH_OPTION="--rsh-command=$RSH" MT_RSH_OPTION="--rsh-command=$RSH"
fi fi
if [ -n $TAPE_FILE ]; then if [ -z "$TAPE_FILE" ]; then
TAPE_FILE=/dev/tape TAPE_FILE=/dev/tape
fi fi
# If TAPE_FILE is a remote device, update mt invocation accordingly # If TAPE_FILE is a remote device, update mt invocation accordingly
: ${MT:=mt}
case $TAPE_FILE in case $TAPE_FILE in
*:*) MT="$MT $MT_RSH_OPTION";; *:*) MT="$MT $MT_RSH_OPTION";;
*) ;; *) ;;