Permalink
Browse files

Since "mt seek" may not work on all tape devices, do not bail out whe…

…n it fails. Closes #35. (Kai-Olaf Pieth)
  • Loading branch information...
dagwieers committed May 21, 2012
1 parent aab0296 commit cdd89309a09dcb46501481233daa96b9efc678e5
Showing with 2 additions and 1 deletion.
  1. +2 −1 usr/share/rear/prep/OBDR/default/70_write_OBDR_header.sh
@@ -22,5 +22,6 @@ printf 'REAR-000%10232s' ' ' | tr ' ' '\0' | dd of=$TAPE_DEVICE bs=512 count=20
StopIfError "OBDR header could not be written to tape device '$TAPE_DEVICE'"
### Make sure we jump to block 20 before writing (needed for DAT320)
+### "mt seek" is not supported on all tape devices, do not stop on failure
mt -f "${TAPE_DEVICE}" seek 20
-StopIfError "Could not seek to block 20 on tape device '$TAPE_DEVICE'"
+LogIfError "Could not seek to block 20 on tape device '$TAPE_DEVICE'"

0 comments on commit cdd8930

Please sign in to comment.