#!/bin/sh
# This snippet modifies /etc/init.d/ltsp-client-core on-the-fly.
#
# Get config stored in LDAP for Debian Edu ltsp clients (thin and fat).
#
sed -i '/"Starting\ LTSP\ client..."/ a\
        /usr/share/ltsp/get-ldap-ltsp-config\
        cat /var/cache/ltsp/ltsp_config_edu >> /var/cache/ltsp/ltsp_config_env\
        ' /etc/init.d/ltsp-client-core
