#!/bin/sh
#
# Check the LTSP installation.

LTSPARCH=`dpkg --print-installation-architecture`

if [ amd64 = "$LTSPARCH" ] ; then
    LTSPARCH=i386
fi

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

if echo "$PROFILE" | grep -q Thin-Client-Server ; then
    if [ -d /opt/ltsp/$LTSPARCH/etc ] ; then
	echo "success: Found LTSP chroot"
    else
	echo "error: LTSP chroot is missing in /opt/ltsp/$LTSPARCH/"
    fi
fi
