Sleep until boot completes properly

Signed-off-by: Tyler Nijmeh <tylernij@gmail.com>
latency
Tyler Nijmeh 4 years ago
parent 276b690ef1
commit f328be209a

@ -1,13 +1,5 @@
#!/system/bin/sh
# Written by Draco (tytydraco @ GitHub)
# Wait 60s into boot before applying changes
echo "[*] Waiting for 60s of uptime."
while [[ `cat /proc/uptime | awk '{print $1}' | awk -F. '{print $1}'` -lt 60 ]]
do
sleep 1
done
echo "[*] Done waiting."
# Setup tweaks
ktweak

@ -110,6 +110,13 @@ while getopts ":ds" opt; do
done
shift $((OPTIND-1))
# Wait for boot to finish completely
dbg "Sleeping until boot completes."
while [[ `getprop sys.boot_completed` -ne 1 ]]
do
sleep 1
done
# Print device information prior to execution
dbg "----- Device Information -----"
# Kernel and device information

Loading…
Cancel
Save