#!/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 115200 raw crtscts > /dev/null
echo "Uploading \"$1\" on COM1 at 115200 bps."
echo "Press Ctrl+C to end the transfer."
cat /dev/ttyS0 > $1
