#!/bin/bash

if [[ -e /etc/standard-raspberry/conf.toml ]];
then
    service="standard-raspberry.service"
elif [[ -e /etc/ipsum/conf.toml ]];
then
    service="ipsum.service"
else
    echo "This device is not running a program" >&2
    exit 1
fi

set -eo pipefail
journalctl -o cat -u "${service}" -f "$@"
