File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -49,14 +49,14 @@ restore_addon_d() {
4949 fi
5050}
5151
52- # Proceed only if /product is the expected major and minor version
52+ # Proceed only if /product or /system is the expected major and minor version
5353check_prereq () {
5454# If there is no build.prop file the partition is probably empty.
55- if [ ! -r /product/etc/build.prop ]; then
55+ if [ ! -r /product/etc/build.prop ] && [ ! -r /system/build.prop ] ; then
5656 echo " Backup/restore is not possible. Partition is probably empty"
5757 return 1
5858fi
59- if ! grep -q " ^ro.lineage.version=$V .*" /product/etc/build.prop; then
59+ if ! grep -q " ^ro.lineage.version=$V .*" /product/etc/build.prop /system/build.prop ; then
6060 echo " Backup/restore is not possible. Incompatible ROM version: $V "
6161 return 2
6262fi
You can’t perform that action at this time.
0 commit comments