#!/bin/sh -e
#
# Check that the workstation related cfengine rules was executed

if test -r /etc/debian-edu/config ; then
    . /etc/debian-edu/config
fi

# Only Workstation profiles use squid
if echo "$PROFILE" | egrep -q 'Workstation|Roaming-Workstation|Thin-Client-Server' ; then
    :
else
    exit 0
fi

if  grep -q '^rtsp-use-tcp=1$' /etc/mplayer/mplayer.conf ; then
    echo "success: $0: MPlayer RTSP override in place."
else
    echo "error: $0: MPlayer RTSP override missing."
fi
