lineage: Complete the rebrand
* TODO: Rebrand cmsdk when it's in a working state
Change-Id: I0d8d573f9e0032110ae3a0f54ebe11a877b83137
diff --git a/prebuilt/common/bin/50-cm.sh b/prebuilt/common/bin/50-lineage.sh
similarity index 85%
rename from prebuilt/common/bin/50-cm.sh
rename to prebuilt/common/bin/50-lineage.sh
index 3154fce..00dcf08 100755
--- a/prebuilt/common/bin/50-cm.sh
+++ b/prebuilt/common/bin/50-lineage.sh
@@ -1,7 +1,7 @@
#!/sbin/sh
-#
-# /system/addon.d/50-cm.sh
-# During a LineageOS 14.1 upgrade, this script backs up /system/etc/hosts,
+#
+# /system/addon.d/50-lineage.sh
+# During a LineageOS 15.0 upgrade, this script backs up /system/etc/hosts,
# /system is formatted and reinstalled, then the file is restored.
#
diff --git a/prebuilt/common/bin/backuptool.functions b/prebuilt/common/bin/backuptool.functions
index 4528a33..dd867c0 100644
--- a/prebuilt/common/bin/backuptool.functions
+++ b/prebuilt/common/bin/backuptool.functions
@@ -5,7 +5,7 @@
export C=/tmp/backupdir
export S=/system
-export V=14.1
+export V=15.0
copy_file() {
cp -dp "$1" "$2"
diff --git a/prebuilt/common/bin/backuptool.sh b/prebuilt/common/bin/backuptool.sh
index b902999..ca823b4 100755
--- a/prebuilt/common/bin/backuptool.sh
+++ b/prebuilt/common/bin/backuptool.sh
@@ -5,7 +5,7 @@
export C=/tmp/backupdir
export S=/system
-export V=14.1
+export V=15.0
# Scripts in /system/addon.d expect to find backuptool.functions in /tmp
cp -f /tmp/install/bin/backuptool.functions /tmp
@@ -34,7 +34,7 @@
if [ ! -r /system/build.prop ]; then
return 0
fi
-if ( ! grep -q "^ro.cm.version=$V.*" /system/build.prop ); then
+if ( ! grep -q "^ro.lineage.version=$V.*" /system/build.prop ); then
echo "Not backing up files from incompatible version: $V"
return 0
fi