#!/bin/sh
# copy new flash software to PZF511
#  $1 binary file with the new software
if [ $# -lt 1 ] ; then
  echo "Usage: flashpzf511 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
flash511 $1

