#!/sbin/sh

PATH=/bin:/sbin:/usr/sbin
# This line adds the install path into the Xinitrc.XFce file.  The path is derived
# from the install script.
if [ -f /tmp/DESTPATH ] ; then
	DESTPATH=`cat /tmp/DESTPATH`
else
	DESTPATH=/usr/local
fi
export DESTPATH
cp -p /etc/dt/config/Xinitrc.XFce /etc/dt/config/Xinitrc.XFce.tmp

cat /etc/dt/config/Xinitrc.XFce.tmp |sed -e "s#__BASEDIR__#$DESTPATH/bin#g" > /etc/dt/config/Xinitrc.XFce

rm /etc/dt/config/Xinitrc.XFce.tmp
