Loading linux/wait-reboot.sh +3 −12 Original line number Diff line number Diff line Loading @@ -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 linux/wait-recovery.sh +2 −2 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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 Loading Loading
linux/wait-reboot.sh +3 −12 Original line number Diff line number Diff line Loading @@ -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
linux/wait-recovery.sh +2 −2 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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 Loading