#!/bin/sh
#
# Linux DGAP Post Install script.
# Should be run after make install.
#
# 1) Will be called automagically by rpm -i.
# 2) Needs to be called manually for the tar.gz install
#    by doing a "make postinstall"

echo "Running Post Install script..."

# Make any wanted symlinks
if [ ! -e /usr/bin/dpa ]
then
	ln -s /usr/bin/dpa.dgap /usr/bin/dpa
fi

if [ ! -e /usr/bin/ditty ]
then
	ln -s /usr/bin/ditty.dgap /usr/bin/ditty
fi

if [ ! -e /usr/bin/dinc ]
then
	ln -s /usr/bin/dinc.dgap /usr/bin/dinc
fi         

# Finally, force dependency checks
if [ -e /sbin/depmod ]
then
	/sbin/depmod -a
fi

printf "\n\n     *********************************************\n\
     * Please run \"mpi\" to configure the driver. *\n\
     *********************************************\n\n\n"
