- echo "vtx=$vtx" >> $VTLOG
- if [ $vtskip -eq 0 ]; then
- if [ "${vtx:5}" = "xzcat" ]; then
+ echo "vtx=$vtx" >> $VTLOG
+ if [ $vtskip -ne 0 ]; then
+ dd if=$vtfile skip=$vtskip iflag=skip_bytes status=none > ${vtfile}.skip
+ rm -f $vtfile
+ mv ${vtfile}.skip $vtfile
+ fi
+
+ if [ "${vtx:5}" = "xzcat" ]; then
+ rm -f $VTOY_PATH/xzlog
+ ${vtx:5} $vtfile 2> $VTOY_PATH/xzlog | (cpio -idmu 2>>$VTLOG; cat > $vttmp)
+ if grep -q 'corrupted data' $VTOY_PATH/xzlog; then
+ echo 'xzcat failed, now try xzminidec...' >> $VTLOG