Commit 30ccb483 authored by Romain Hunault's avatar Romain Hunault

Backuptools: check Android version instead of /e/ version

parent 0c07e8d2
......@@ -5,7 +5,7 @@
export C=/tmp/backupdir
export S=/system
export V=0.5
export V=8.1
export ADDOND_VERSION=1
......@@ -48,7 +48,7 @@ check_prereq() {
if [ ! -r /system/build.prop ]; then
return 0
fi
if ! grep -q "^ro.lineage.version=$V.*" /system/build.prop; then
if ! grep -q "^ro.build.version.release=$V.*" /system/build.prop; then
echo "Not backing up files from incompatible version: $V"
return 0
fi
......
......@@ -5,7 +5,7 @@
export S=/system
export C=/postinstall/tmp/backupdir
export V=0.5
export V=8.1
export ADDOND_VERSION=2
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment