#!/bin/sh
#
#  Script to load World Wide Web browser for reading the Voo Doo Homepage.  
#  Stolen from "The Tech" and modified by Phosphorous, September 12, 1994.

# Define some fairly-constants
   machtype=`machtype`
   hostname=`hostname`
   locker='/afs/athena.mit.edu/activity/v/voodoo'
   webpage='http://web.mit.edu/afs/athena/activity/v/voodoo/www/index.html'

# Dorky Greeting Message
   echo ""
   echo "Voo Doo Magazine -- MIT's Journal of Humor -- Established 1919"
   echo "If you have any questions, please email voodoo@mit.edu"

# Update logfile  
#   echo "Logging hostname, platform, and date..."
#   echo $hostname $machtype : `date` >> $locker/.logs/user_log

# Check for X Display
   if [ $DISPLAY ]; then
      echo "Starting viewer..."
      if [ "$machtype" = "vax" ]; then
         attach -q -a sipb 
      fi
      /afs/athena.mit.edu/software/infoagents/${machtype}bin/netscape -home $webpage &
   else
      /afs/athena.mit.edu/software/infoagents/${machtype}bin/lynx $webpage
   fi
