#!/bin/sh

# Check that a filename was specified.
if test -z "$1"
then
    echo "No filename specified!"
    exit 1
fi

# Perform the file transfer.
stty -F /dev/ttyS0 speed 57600 raw crtscts > /dev/null
echo "Uploading \"$1\" on COM1 at 57600 bps."
echo "Press Ctrl+C to end the transfer."
cat /dev/ttyS0 > $1
