Skip to content

Instantly share code, notes, and snippets.

@hrpunio
Created October 30, 2011 20:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hrpunio/1326358 to your computer and use it in GitHub Desktop.
Save hrpunio/1326358 to your computer and use it in GitHub Desktop.
#!/bin/bash
# *** Zaladowanie pliku GPX do garmina ***
#
# Trasa z http://www.gmap-pedometer.com/ ma nieokreslona nazwe:
# <name>Gmaps Pedometer Route</name>
# Przed zaladowaniem nalezy to recznie poprawic bo inaczj sie zle
# wyswietla w Garminie
grep Pedometer $1 > /dev/null
if [ $? == 0 ] ; then
echo 'Popraw nazwe trasy!'
exit
fi
# Laduje waypoints/routes/tracks
gpsbabel -r -w -i gpx -f $1 -o garmin -F /dev/ttyUSB0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment