#! /bin/sh
#	BSDI $Id: begin_install,v 1.3 2000/10/13 16:56:43 polk Exp $

# Nothing to do if we installed new config files...
if [ -f /.install-floppy ] ; then
	exit 0;
fi

# INSTROOT is normally set by installsw.
if [ "$INSTROOT" = "/" ] ; then
        INSTROOT=
fi

echo "Cleaning up for installation of Additional /usr"

# START REMOVE
# AUTOMATICALLY GENERATED, SEE ../build_remove
rm -rf $INSTROOT/usr/share/games/fortune/fortunes2-o
rm -rf $INSTROOT/usr/share/games/fortune/fortunes2-o.dat
rm -rf $INSTROOT/usr/share/games/fortune/limerick
rm -rf $INSTROOT/usr/share/games/fortune/limerick.dat
# END REMOVE

# Move the /var/news.bsdi directory into place if they don't have one yet
# Copy in the old news.daily if we saved one before

if [ ! -e $INSTROOT/var/news -a -e "$INSTROOT/var/news.bsdi" ]; then
	mv "$INSTROOT/var/news.bsdi" "$INSTROOT/var/news"
fi

exit 0;
