head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	95.08.26.01.44.04;	author ghudson;	state Exp;
branches;
next	1.1;

1.1
date	95.08.26.01.36.27;	author ghudson;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Look for tail in the path, not /usr/ucb.
@
text
@#!/bin/sh

PATH=/bin:/bin/athena:/usr/ucb:/usr/bin:/usr/athena/bin

if [ -f /etc/athena/rc.conf ]; then
	. /etc/athena/rc.conf
fi

df="df -t 4.2"

case `/bin/athena/machtype -c` in
	CVAXSTAR) type="Digital VAXstation 3100";;
	VAXSTAR) type="Digital VAX VS2000";;
	MVAX-II) type="Digital Microvax II";;
	RT*) type="IBM PC/RT";;
	KN01) type="Digital DECstation 3100"
		df="/bin/df";;
	KN02) type="Digital DECstation 5000"
		df="/bin/df";;
	KN02ba) type="Digital DECstation 5000/120"
		df="/bin/df";;
	KN02ca) type="Digital Personal DECstation 5000/25"
		df="/bin/df";;
	KN210) type="Digital DECstation 5400"
		df="/bin/df";;
	PS2-70) type="IBM PS/2 Model 70"
		df="/bin/df";;
	PS2-80) type="IBM PS/2 Model 80"
		df="/bin/df";;
	PS2*) type="IBM PS/2"
		df="/bin/df";;
	POWER*) type="IBM RISC/6000"
		df="/bin/df";;
	*) type=`/bin/athena/machtype -c -v`
		df="/bin/df";;
	esac

echo `hostname` "is a" $type 					
echo -n "Release: "						
tail -1 /etc/athena/version | awk '{print $5}'		
echo "System pack attached: " `attach | awk '$2=="/srvd" {print $1}'`
echo -n "System pack is: " 					
cat /srvd/.rvdinfo 						
echo "Hesiod information:" 					
hesinfo `hostname` cluster | awk '{printf("\t%s\n", $0)}'	
echo "Address: " $ADDR						
if [ "${PUBLIC}" = "true" ]; then
	echo "This is a public workstation."			
fi
echo "Memory: " `/bin/athena/machtype -v -M` 			
echo -n "Display head: "					
machtype -v -d							
echo "Disks:"							
machtype -v -r| awk '{printf("\t%s\n", $0)}'			
echo "Disk space:"						
$df
echo								
echo								
echo -n "Press ENTER or RETURN to exit."

read foo

exit 0
@


1.1
log
@Initial revision
@
text
@d40 1
a40 1
/usr/ucb/tail -1 /etc/athena/version | awk '{print $5}'		
@
