.faceprofile revision ed9df62ee8252b9df6f24409276deabf199dcd40
#ident "%Z%%M% %I% %E% SMI"
export PATH TERM IDENTIFY VMSYS OASYS
VMSYS=`sed -n -e '/^vmsys:/s/^.*:\([^:][^:]*\):[^:]*$/\1/p' /etc/passwd`
OASYS=`sed -n -e '/^oasys:/s/^.*:\([^:][^:]*\):[^:]*$/\1/p' /etc/passwd`
PATH=$VMSYS/lbin:$VMSYS/bin:$OASYS/bin:$HOME/bin:$PATH
IDENTIFY=$OASYS/bin
while :
do
if [ -z "$TERM" -o "$TERM" = "unknown" -o "$TERM" = "ansi" ]
then
echo "TERM=\c"
read TERM
if [ -z "$TERM" ]
then
eval "`termtest`"
if [ -z "$TERM" ]
then
echo "Cannot determine terminal type - please enter terminal name"
continue
fi
fi
fi
if [ -r /usr/lib/terminfo/?/"$TERM" ]
then
break
else
echo "The terminal '$TERM' is unknown - please try a different response"
TERM=""
fi
done
tput init; stty tab3
if $VMSYS/bin/chkperm -t invoke
then exec face
fi