#!/bin/sh
# copy new flash software to GPS167
#  $1 binary file with the new software
if [ $# -lt 1 ] ; then
  echo "Usage: flashgps binary_file"
  exit 1
fi

# terminate running lantime
killproc -TERM /usr/bin/lantimed
killproc -TERM /usr/sbin/ntpd
# wdogtrig &

# set GPS to bootmode
send_gps_bsl /dev/ttyS2 2

# flash new software to GPS
flash166 $1

