#!/bin/sh

# Script to map traditional OSE tput syntax to Linux busybox tftp.

if [ $# -lt 2 -o $# -gt 3 ] ; then
    echo "Usage: $(basename $0) <host> <remote-file> [<local-file>]"
    exit 1;
fi

exec tftp -p -r "$2" -l "${3:-$2}" $1 -t 50 -T 5000 -k 12
