Skip to content
This repository has been archived by the owner on Jan 5, 2022. It is now read-only.

Commit

Permalink
switching from stty to exec-out for partition backup (see #25)
Browse files Browse the repository at this point in the history
  • Loading branch information
IzzySoft committed May 7, 2017
1 parent 1d24a4b commit 62ced03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/partitions.lib
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ _fsPartBackup() {
else
pname="${MTD_NAME[${counter}]}"
fi
echo "adb ${ADBOPTS} shell \"su -c 'stty raw; cat ${MTD_DEV[${counter}]}'\" > \"${PARTBACKUPDIR}/${pname}.img\"" >> "${PARTBACKUP_FILE}"
echo "adb ${ADBOPTS} exec-out \"su -c 'cat ${MTD_DEV[${counter}]}'\" > \"${PARTBACKUPDIR}/${pname}.img\"" >> "${PARTBACKUP_FILE}"
counter+=1
done
}
Expand Down

0 comments on commit 62ced03

Please sign in to comment.