Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

Backuptools: check Android version instead of /e/ version

parent 0c07e8d2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@

export S=/system
export C=/postinstall/tmp/backupdir
export V=0.5
export V=8.1

export ADDOND_VERSION=2