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

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

# set GPS to bootmode
enter_bsl_mode_ttyS0

# flash new software to GPS
flashxc167 $1


