#!/bin/bash # make script fail if any command failed, # so we don't need to check the exit status of every command. set -e set -o pipefail make set +e plink root@192.168.1.75 -pw 1 'killall MiSTer' set -e ftp -n </dev/ttyS0 2>/dev/ttyS0