#!/bin/sh
#       BSDI $Id: post_install,v 1.2 2000/01/11 21:25:00 polk Exp $

# Move the /usr/X11R6/lib/X11/xdm.bsdi directory into place if they 
# don't have one yet

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

if [ ! -e $INSTROOT/usr/X11R6/lib/X11/xdm ]; then
	mv "$INSTROOT/usr/X11R6/lib/X11/xdm.bsdi" \
		"$INSTROOT/usr/X11R6/lib/X11/xdm"
fi

# Make /usr/local/netscape a link to /usr/share unless they have one
if [ -d $INSTROOT/usr/local -a ! -e "$INSTROOT/usr/local/netscape" ]; then
	ln -s "../share/netscape" "$INSTROOT/usr/local/netscape"
fi

exit 0;
