#!/bin/bash
#
# Starts a PTP server on your machine for working with the 
# yeti
#
sudo service ufw stop
if [ -z "$1" ]
then
    "No interface provided (ex. eth2), assuming eth0..."
    sudo ptp4l -f ./yeti_setup/ptp4l.conf -i eth0 -S -m -l 7 -A
else
    sudo ptp4l -f ./yeti_setup/ptp4l.conf -i $1 -S -m -l 7 -A
fi
