#!/bin/sh
echo
echo Deactivating workstation...
cp /etc/passwd.local /etc/passwd

# This is a kludge to get rid of all spun-up drives.
for i in `/bin/athena/vdstats | /bin/awk '/^[ \t]*[0-9]/ { print $1 }' \
	| sort -nr`; do
	/etc/umount /dev/vd${i}a
	case $? in
	0)
		/bin/athena/spindown ${i}
		;;
	*)	
		;;
	esac
done
if [ ! -f /etc/nocreate ]
	/bin/rm -rf /site/mit
	mkdir /site/mit
	chmod 755 /site/mit
fi
/bin/athena/access_on

