#!/bin/sh

set -e

UUTRAFCF=/etc/uucp/uutraf.cf

if [ ! -e ${UUTRAFCF}.dpkg-dist ]; then
    echo ""
    echo "You must tailor your $UUTRAFCF file to your local installation."
    echo "Read the uutraf(5) manual page for explanations about the file format."
fi

if [ "$1" = "configure" ]; then
  if [ -d /usr/doc -a ! -e /usr/doc/uutraf -a -d /usr/share/doc/uutraf ]; then
    ln -sf ../share/doc/uutraf /usr/doc/uutraf
  fi
fi

exit 0

