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


1.2
date     92.02.13.16.25.00;  author vac;  state Exp;
branches ;
next     1.1;

1.1
date     92.02.13.16.23.34;  author vac;  state Exp;
branches ;
next     ;


desc
@Pmax seems to be ok now.
@


1.2
log
@Took out special case for PMAX
@
text
@#!/bin/csh -f
#
#  This script must be run as root.

if (! -d /alex) then
    echo "Doing mkdir /alex "
    /bin/rm -f /alex >& /dev/null
    mkdir /alex
endif

set ATSYS = `/usr/vice/bin/sys`

echo $ATSYS | grep mach
if ($status != 0) then
    echo Non-Mach
    set MOUNTPATH=/etc
else
    echo Mach
    set MOUNTPATH=/usr/misc/.nfs/etc

    if (! -e $MOUNTPATH/mount) then
        echo "I am going to run modmisc to install mount command - just wait."
        /usr/cs/etc/modmisc - -release alpha cs.misc.nfs
    endif
endif

#if (-e /alex/edu) then
    echo "Blindly unmounting Alex just to be safe."
    echo "I will remove any core file after umount finishes (don't, worry be happy)"
    $MOUNTPATH/umount /alex
    /bin/rm -f core
#endif

echo "About to mount Alex."
echo "There is a good chance that mount will work but give an error message anyway."

$MOUNTPATH/mount -o ro,retry=20,timeo=50,retrans=10,soft,intr alex.sp.cs.cmu.edu:/usr2/alex /alex

echo "As a test I will do a    ls /alex" 
/bin/ls /alex


@


1.1
log
@Initial revision
@
text
@d37 1
a37 8
#if ($ATSYS == pmax_mach) then
#    $MOUNTPATH/mount -o ro,retry=40,soft,intr alex:/usr2/alex /alex
#     rmdir /alex >& /dev/null
#     /bin/rm -f /alex >& /dev/null
#     ln -s /../burgundy/alex /alex
#else 
    $MOUNTPATH/mount -o ro,retry=20,timeo=50,retrans=10,soft,intr alex.sp.cs.cmu.edu:/usr2/alex /alex
#endif
@
