diff options
| author | spv <spv@spv.sh> | 2025-07-29 18:35:09 -0400 |
|---|---|---|
| committer | spv <spv@spv.sh> | 2025-07-29 18:35:09 -0400 |
| commit | 636632b1d03f14c45911c1051d39ff01bd6f118a (patch) | |
| tree | f889a18e83aa33f4f993aac87d0bfebf2d2f308c /src/wait_for_fix.sh | |
| parent | f9edc4b39a99df397007100e13ebaf7cf2e48373 (diff) | |
wait for gps fix, use file extensions, make the logging all professional-like
Diffstat (limited to 'src/wait_for_fix.sh')
| -rwxr-xr-x | src/wait_for_fix.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/wait_for_fix.sh b/src/wait_for_fix.sh new file mode 100755 index 0000000..ab83968 --- /dev/null +++ b/src/wait_for_fix.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env zsh + +function got_fix { + mmcli -m any --location-get | + grep -q GPS && + echo 'true' +} + +while [ "`got_fix`" != 'true' ]; do + echo "[i] waiting for fix..." + sleep 1 +done + +echo "[*] got it."
\ No newline at end of file |
