#!/bin/sh
# Copyright (c) 1992, 1993 Black Market Technologies, Inc.
# This is proprietary software.  You must purchase a license for each computer
# on which you want to use this software.  For complete licensing information, 
# check the license agreement that came with this software or contact
# Black Market Technologies at +1 718 522-5090.
# 
# Usage $0 domainname
# $Id: is-domainname,v 1.5 1993/08/02 07:17:46 treed Exp $
# $Author: treed $ $Date: 1993/08/02 07:17:46 $

# Set domainname in /etc/sendmail/sendmail.*cf

CIN=21

PROMPT="Connect It: ${CIN}: "
APP_PATH=$1
shift
PATH="${APP_PATH}/Scripts:${APP_PATH}:/etc:/usr/etc:/usr/ucb:/bin:/usr/bin"
export PATH

YES=0
NO=1
PROBLEM=9

DOMAINNAME=`get-domainname ${APP_PATH}`"

if test "${DOMAINNAME}" = "$1" ; then
#   echo "${PROMPT} Domainname confirmed" >&2
  exit ${YES}
else
#   echo "${PROMPT} Domainname not confirmed" >&2
  exit ${NO}
fi

