Allow user customization of map locations via SXMO_GPSLOCATIONSFILES

master
Miles Alan 5 years ago
parent b80ce9e872
commit 00e09e6897
  1. 4
      scripts/core/sxmo_gpsutil.sh

@ -1,5 +1,5 @@
#!/usr/bin/env sh
SXMO_GPSLOCATIONSFILE="/usr/share/sxmo/places_for_gps.tsv"
[ -z "$SXMO_GPSLOCATIONSFILES" ] && SXMO_GPSLOCATIONSFILES="/usr/share/sxmo/places_for_gps.tsv"
CTILESIZE=256
CLN2=0.693147180559945309417
CPI=3.14159265358979323846
@ -181,7 +181,7 @@ menulocations() {
CHOICE="$(
printf %b "$(
echo "Close Menu";
cat "$SXMO_GPSLOCATIONSFILE";
echo "$SXMO_GPSLOCATIONSFILES" | tr "," "\n" | xargs cat
)" |
grep -vE '^#' |
sed "s/\t/: /g" |

Loading…
Cancel
Save