#!/bin/sh
# @(#)getinstance.sh	1.0	11/15/00
#

INST_CFG=/var/opt/lanman/config

textdomaindir=/opt/lanman/lib/locale

textdomain='groupadd'

#
# Function to run gettext with TEXTDOMAINDIR set.
# TEXTDOMAINDIR is not set in the exported environment so subprocesses 
# do not inadvertently use it.
#

pgettext () {
	gttext=gettext #Trick to fool shgettext
	TEXTDOMAINDIR=${textdomaindir} ${gttext} ${textdomain} "$1"
}


oflag=a

index="0"

if [ $# -gt 0 ]
then
	index=$1
fi

while read inum path lhost 
do
	ilist="$ilist $inum"	
	if [ $index = "0" -o $index = $inum ]
	then
		echo $inum $path $lhost
	fi
done < $INST_CFG

exit 0
