diff options
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 |
