tape-admin: fix loop error for mtx_unload()

Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
2018-11-29 11:39:57 +01:00
parent e1bc9f5d69
commit 184bc7996d

View File

@@ -1215,8 +1215,8 @@ mtx_unload () {
fi
make_err_file
${MTX} -f $changer_device unload $slot_source $drive 1>/dev/null 2>${ERRFILE}
for i in 1 2 3 4 5 ; do
${MTX} -f $changer_device unload $slot_source $drive 1>/dev/null 2>${ERRFILE}
RET=$?
if test $RET -eq 0; then
break