Skip to content

Commit

Permalink
boot script automatically waits until wifi is available
Browse files Browse the repository at this point in the history
  • Loading branch information
Binozo committed Dec 30, 2023
1 parent fb0e291 commit dcf3b63
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions boot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ echo "Waiting for Device to come online..."
adb wait-for-device
echo "Uploading your executable..."
adb push $targetWorkingDir/$executableFileName /data/local/tmp/echogo
echo "Waiting until WiFi is available..."
while [ "$(hostname -I)" = "" ]; do
echo -e "\e[1A\e[KNo network: $(date)"
sleep 1
done
echo "Starting your executable..."
adb shell "chmod +x /data/local/tmp/echogo"
adb shell "cd /data/local/tmp/ && ./echogo"

0 comments on commit dcf3b63

Please sign in to comment.