#!/sbin/sh
#------------------------------------------------------------------#
#
# HPUX_ID: @(#) $Revision: 14.3 $ generated on Tue Jun  6 13:15:35 EDT 2000
#
# (c)Copyright 1983-2000 Hewlett-Packard Co.,  All Rights Reserved.
#
#------------------------------------------------------------------#
# SD verify script template for use with all patches.              #
#------------------------------------------------------------------#
# This file is optional for all patches.  The purpose of this      #
# script is to check for the correctness of the patch installation #
# and configuration.                                               #
#------------------------------------------------------------------#

_PATCHID=PHNE_22244

UTILS="/usr/lbin/sw/control_utils"

if [ ! -f $UTILS ]; then
    echo "ERROR:   Cannot find $UTILS"
    exit $FAILURE
fi

. $UTILS
exitval=$SUCCESS

#######################################################################
#                                                                     #
#  Make sure our nettl entry was configured                           #
#                                                                     #
#######################################################################

NTLCONFFILE="/etc/nettlgen.conf"
if [ ! -f $NTLCONFFILE ] ; then
        echo "ERROR:   Cannot find \"$NTLCONFFILE\"."
        exit $FAILURE
fi

NETTLCONF="/usr/sbin/nettlconf"
if [ ! -f $NETTLCONF ] ; then
        echo "ERROR:   Cannot find \"$NETTLCONF\"."
        exit $FAILURE
fi

$NETTLCONF -status | grep base100 > /dev/null 2>&1
cmd_result=$?
if [ $cmd_result -eq 1 ]
then
      echo "ERROR:   The 10/100Mb LAN product is not configured in the "
      echo "         \"$NTLCONFFILE\" file."
      exitval=$FAILURE
fi

exit $exitval
