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

Verified Commit f0b4f1be authored by Frank Preel's avatar Frank Preel Committed by Nicolas Gelot
Browse files

MacOS compatibility

parent 19a40c6d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -34,11 +34,11 @@ then
	echo "Lock Critical fails!"
	exit 101
fi
sleep 10s
sleep 10
echo "Critical locked!"

#Then we wait that it left this state
while [ "$($FASTBOOT_PATH devices | grep -q fastboot; echo $?)" = 0 ]
do
    sleep 1s
    sleep 1
done
+2 −2
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ echo "fastboot path: $FASTBOOT_PATH"

if [ "$($FASTBOOT_PATH oem device-info 2>&1 | grep -q "critical unlocked: true"; echo $?)" = 0 ]
then
    sleep 10s
    sleep 10
    echo "Device already critically unlocked!"
else
    if [ "$($FASTBOOT_PATH flashing unlock_critical; echo $?)" = 1 ]
@@ -37,6 +37,6 @@ else
        echo "Crtical unlock fails!"
        exit 10
    fi
    sleep 10s
    sleep 10
    echo "Critical unlocked!"
fi
+2 −2
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ echo "fastboot path: $FASTBOOT_PATH"

if [ "$($FASTBOOT_PATH getvar unlocked 2>&1 | grep -q yes; echo $?)" = 0 ]
then
    sleep 10s
    sleep 10
    echo "Device already unlocked"
else
    if [ "$($FASTBOOT_PATH flashing unlock; echo $?)" = 1 ]
@@ -37,6 +37,6 @@ else
    	echo "OEM-unlock fails"
      	exit 10
    fi
    sleep 10s
    sleep 10
    echo "OEM unlocked"
fi