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

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

# set PZF to bootmode
send_pzf_bsl /dev/ttyS2 2

# flash new software to PZF
flash509 -c:1 -b:9600 $1

