#!/bin/sh
#
# Invoke tftp to write a file to a server non-interactively.
#

PATH=/bin:/usr/bin:/sbin:/usr/sbin

#
# Input parameter:
# $1 = the server IP address
# $2 = the file name
#
/usr/bin/tftp $1<<-DONE
	put $2
	if [ $? -eq 0 ]; then
		exit 1
DONE
