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

Verified Commit 3691c92c authored by Rohit Sekhar's avatar Rohit Sekhar Committed by Nicolas Gelot
Browse files

fp4_check_bootloader.sh: Reboot incase we havent locked yet

* Devices that havent LOCKED would still be in fastboot
parent d49eb572
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -55,12 +55,14 @@ I_MURENA__SECURITY_PATCH=$(versionToInt $MURENA__SECURITY_PATCH)
if [[ "$I_ORIGINAL_SECURITY_PATCH" -lt "1" ]]
then
    echo "ORIGINAL ROM INFO NOT AVAILABLE => DO NOT PROCESS"
    "$FASTBOOT_PATH" reboot
    sleep 30
elif [[ $I_MURENA__SECURITY_PATCH -ge $I_ORIGINAL_SECURITY_PATCH ]]
then
    echo "GREATER OR EQUALS => PROCESS"
else
    echo "LOWER => DO NOT PROCESS"
    "$FASTBOOT_PATH" reboot
    sleep 30
fi