|
DataMuseum.dkPresents historical artifacts from the history of: Regnecentalen RC-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Regnecentalen RC-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 1419 (0x58b) Types: TextFile Notes: UNIX file Names: »addequiv«
└─⟦8c4f54e61⟧ Bits:30004068/disk2.imd Interactive TCP/IP v.1.2 └─⟦8c4f54e61⟧ UNIX Filesystem └─⟦this⟧ »hb/new/usr/admin/menu/packagemgmt/tcpipmgmt/addequiv«
#ident "@(#)addequiv 3.1 - 88/06/01" #ident "@(#)addequiv 1.1 - 87/07/28" # This shell is used to add a host.equiv entry # to /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 MYNAME=`uname` FIRST=true flags="-qq -k$$" trap exit 1 2 15 if [ -f "$EQUIV" -a \( ! -w "$EQUIV" -o ! -r "$EQUIV" \) ]; then admerr $0 "Can't write and read '$EQUIV'\nCan't do add operation!\n" exit fi echo " This procedure is used to create entries in the $PACKAGE '$EQUIV' file. This file contains information which this machine, '$MYNAME', uses to share logins with the remote equivalent site. Any full domain name in this site, is assumed to be a friend. This means that an equivalent login id on the two machines is the same person on both machines. " while $FIRST || chkyn ${flags} -f " Add another entry to the equivs file?" || exit do FIRST=false NAME=`chkyn ${flags} -ref " Enter the domain name of the equivalent host you want to add:" \ '^[0-9A-Za-z][0-9A-Za-z.]*$' 'Name is letters, digits, "." character only'` echo "\nHere is the equivs file entry for machine '$NAME.'" /bin/sh _equivprint $NAME if chkyn ${flags} -f " Should this be entered into the '$EQUIV' file?" then cat <<-! >> $EQUIV $NAME ! echo "\n **** host '$NAME' has been added to '$EQUIV' *****\n" fi done