#!/sbin/sh
#------------------------------------------------------------------#
#
# HPUX_ID: @(#) $Revision: 17.3 $ generated on Mon Mar  5 08:20:36 EST 2001
#
# (c)Copyright 1983-2001 Hewlett-Packard Co.,  All Rights Reserved.
#
#------------------------------------------------------------------#
# SD configure script template for use with all patches.           #
#------------------------------------------------------------------#
# This file is optional for all patches.  The purpose of this      #
# script is to perform patch installation actions that cannot be   #
# accomplished by simple unconditional file extraction from the    #
# software source media.                                           #
#------------------------------------------------------------------#

_PATCHID=PHNE_22159

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

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

. $UTILS
exitval=$SUCCESS

#####
##### Insert any code you may require right here.
##### Pay attention to the exitval variable and set appropriately
##### in your code.  If you are unsure as to what types of operations
##### are legal in this file and what types aren't, consult the 
##### "Guidelines for SD Control Scripts" document.
#####
##### START_CUSTOMIZATION_HERE

# Run insf to create new telnet device files in /dev/pts.

echo "NOTE:    Executing insf to create new telnet ptys in /dev/pts."

/sbin/insf -D/dev -d tels 1>/dev/null 2>&1

if [[ $? -ne 0 ]]
then
  echo "WARNING: insf is unable to create telnet ptys in /dev/pts"
  echo "         You need to manually create telnet ptys"
  echo "         /sbin/insf -D/dev -d tels"
  exitval=$WARNING
fi

exit $exitval
