[OpenAFS-port-darwin] gui Mount_AFS update

Steve Lidie sol0@Lehigh.EDU
Thu, 4 Dec 2003 13:32:51 -0500


On Dec 4, 2003, at 12:45 PM, David Botsch wrote:

> If there's a good, portable way to determine what version of the OS is 
> being run, this can be fixed. /usr/include/sys/version.h doesn't 
> appear to be of any use. On my Jaguar system it shows major kernel 
> version of 10 and minor version of 0.

Here is a snippet of the postinstall code I hacked a bit back for Ed 
Moy, thus generating OpenAFS-1.2.10b.pkg for Panther - he used uname:

#!/bin/sh
# Portions Copyright (c) 2003 Apple Computer, Inc.  All rights reserved.
if [ -d /afs -a ! -h /afs ]; then
    rmdir /afs
fi
majorvers=`uname -r | sed 's/\..*//'`
if [ $majorvers -ge 7 ]; then
   # /Network is now readonly, so put AFS in /afs; make sure /afs is a 
directory
   if [ -e /afs ]; then
     if [ -h /afs -o ! -d /afs ]; then
       rm -f /afs
       mkdir /afs
     fi
   else
     mkdir /afs
   fi
else
   mkdir -p /Network/afs
   if [ ! -h /afs ]; then
     ln -s /Network/afs /afs
   fi
fi


>
> On 2003.12.04 12:27 Steve Lidie wrote:
>> On Dec 4, 2003, at 12:24 PM, David Botsch wrote:
>>> in concert with the patch I mentioned yesterday, I've slightly 
>>> updated the gui Mount_AFS.
>>> 1. checks for /Network/afs to exist. If not, creates it.
>>> 2. Marks /Network/afs as not ejectable, so that it doesn't get 
>>> ejected when you log out.
>>> http://cf.ccmr.cornell.edu/publicdownloads/afs


>> Note, for Panther /Network/afs no longer exists.... it's just /afs.
>> _______________________________________________
>> port-darwin mailing list
>> port-darwin@openafs.org
>> https://lists.openafs.org/mailman/listinfo/port-darwin
>
> -- 
> ********************************
> David William Botsch
> Consultant/Advisor II
> CCMR Computing Facility
> dwb7@ccmr.cornell.edu
> ********************************
> _______________________________________________
> port-darwin mailing list
> port-darwin@openafs.org
> https://lists.openafs.org/mailman/listinfo/port-darwin