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

Commit 23b9068f authored by vince-bourgmayer's avatar vince-bourgmayer
Browse files

update wait-reboot and correct wait-recovery

parent fcd3834f
Loading
Loading
Loading
Loading
+3 −12
Original line number Diff line number Diff line
@@ -31,17 +31,8 @@ then
  exit 10
fi

function device_in_recovery
{
  adb devices | grep recovery | grep ${DEVICE_ID} 2>&1 >/dev/null
}

if ! device_in_recovery
adb -s ${DEVICE_ID} wait-for-device
if [ $? ==1 ]
then
	exit 101
fi

while device_in_recovery
do
  sleep 1
done
+2 −2
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@ DEVICE_ID=$1

if [ ! -z $DEVICE_ID ]
then
  adb -s %DEVICE_ID% wait-for-recovery
  adb -s ${DEVICE_ID} wait-for-recovery
    if [ $? == 0 ]
    then
      adb -s ${DEVICE_ID} shell twrp mount system
@@ -54,7 +54,7 @@ do
  sleep 1
done

adb -s %DEVICE_ID% wait-for-recovery
adb -s ${DEVICE_ID} wait-for-recovery
if [ $? == 0 ]
  then
    adb -s ${DEVICE_ID} shell twrp mount system