#!/bin/sh
#
# This is a workaround for bug #593770 in LTSP, and should be removed
# when that bug is fixed.

case $1 in
    prereqs)
        # No prerequisites
	exit 0
	;;
esac

# Gracefully exit if ltsp_chroot file is not present
test -f ${rootmnt}/etc/ltsp_chroot || exit 0

. /tmp/net-*.conf

if [ "$IPV4DNS0" ] ; then
    echo "export DNS_SERVER=\"$IPV4DNS0\"" >> /conf/param.conf
fi
if [ "$DNSDOMAIN" ] ; then
    echo "export SEARCH_DOMAIN=\"$DNSDOMAIN\"" >> /conf/param.conf
fi
