#!/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 "0:0:80001cb2:8a38:3:1c:7f:15:4:0:1:0:11:13:1a:0:12:f:17:16:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0"
echo "Uploading \"$1\" on COM1 at 115200 bps."
echo "Press Ctrl+C to end the transfer."
cat /dev/ttyS0 > $1
