#!/bin/sh

set -eu

if [ -n "${EXAMMODE_SESSION:-}" ]; then
  exit 0
fi

if [ "$(puavo-conf puavo.exammode.enabled)" != 'true' ]; then
  exit 0
fi

exec puavo-exammode-setup-applet "$@"
