#!/bin/bash

echo "Install SCS PMON - a PACTOR(R) monitoring utility"

# add the repo
echo "deb https://www.scs-ptc.com/repo/packages/ buster non-free" | sudo tee /etc/apt/sources.list.d/scs.list > /dev/null

# download and add the SCS public gpg key
wget -q -O - https://www.scs-ptc.com/repo/packages/scs.gpg.key | sudo apt-key add -

# refresh package index
sudo apt update

# install pmon
sudo apt -y install pmon

echo "Done!"
