blob: ab83968c25f57cf36d30e545f58c7632e2f0308f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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."
|