#! /bin/bash
cd ~/

# Kill any running processes and remove files.
sudo killall kissattach > /dev/null 2<&1
sudo killall direwolf > /dev/null 2>&1
sudo rm /tmp/kisstnc > /dev/null 2>&1

# Run direwolf in a terminal.
lxterminal -e 'bash -c "direwolf -p";read x'
sleep 2

# Start kissattach.
LINK=$(ls -l /tmp/kisstnc | awk '{print $NF}')
sudo kissattach $LINK wl2k
sudo kissparms -c 1 -p wl2k

# Run PAT-Winlink in a terminal.
lxterminal -e 'bash -c "pat http";read x'
