#!/bin/bash

CONF=./pam.conf
CONFILE=/etc/pam.conf

echo

if [ -f $CONFILE ] || [ "$CONF" -nt "$CONFILE" ]; then
	echo -n "\
A Linux-PAM configuration file already exists ($CONFILE)
Do you wish to over-write it with the one contained in
this distribution? [n] "
	read yes
else
	yes=n
fi

if [ "$yes" = "y" ]; then
	echo "  copying $CONF to $CONFILE"
	cp $CONF $CONFILE
else
	echo "  Skipping pam.conf installation"
fi

echo

exit 0
