DataMuseum.dk

Presents historical artifacts from the history of:

Regnecentalen RC-900

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Regnecentalen RC-900

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦000021e80⟧ TextFile

    Length: 1156 (0x484)
    Types: TextFile
    Notes: UNIX file
    Names: »lsequiv«

Derivation

└─⟦8c4f54e61⟧ Bits:30004068/disk2.imd Interactive TCP/IP v.1.2
└─⟦8c4f54e61⟧ UNIX Filesystem
    └─⟦this⟧ »hb/new/usr/admin/menu/packagemgmt/tcpipmgmt/lsequiv« 

TextFile

#ident	"@(#)lsequiv	3.1 - 88/06/01"

#ident	"@(#)lsequiv	1.1 - 87/07/28"
#	This shell is used to list host.equiv entries
#	from /etc/hosts.equiv

PACKAGE="Extended Networking Utilities"
PATH=:/bin:/usr/bin:/usr/lbin
HOST=/etc/hosts
EQUIV=/etc/hosts.equiv
XDIR=$MENUTOP/menu/packagemgmt/tcpipmgmt
cd $XDIR


FIRST=true
flags="-qq -k$$"
trap 'exit 0' 1 2  15

if [ ! -r $EQUIV ]; then
	echo "There are no entries in the '$EQUIV' file
Use equivtmgmt to add entries.\n"
	exit
fi

syslist=`grep '^[^#]' $EQUIV  2>/dev/null | cut -d' ' -f1 $EQUIV \
	|  sort -u  |	grep '^[A-Za-z0-9]'`

if [ $? -ne 0 ]; then
	echo "There are no entries in the '$EQUIV' file
Use equivmgmt to add entries.\n"
	exit
fi

while $FIRST || chkyn ${flags} -f '
Do you want to see another equiv entry?' || break

do
FIRST=false
	echo "
This is the current list of equivs known to the $PACKAGE:"
	echo "${syslist}"  |  pr -t -w80 -4
	equivname=`chkyn ${flags} -fec '
Enter equiv name you want to see in detail [q]:' \
		${syslist}`
	echo "\nHere is the equivs file entry for machine '${equivname}'."
	grep "${equivname}" $EQUIV |
		while read a
		    do /bin/sh _equivprint $a
		done
done