[OpenAFS-port-darwin] configuring openafs under MacOS 10

Garance A Drosihn drosih@rpi.edu
Sat, 2 Jun 2001 01:48:48 -0400


First, let me say I was very happily impressed to see that
work on OpenAFS for MacOS 10 was so far along that it had
an official installer.

One question I had was why the installer put the changes in
/System/Library/StartupItems instead of /Library/StartupItems.
Isn't /System for "Apple-only" things?

My hope here is that the answer is something like "Apple plans
on providing the official installer for openafs on MacOS 10",
when then lets me ask the real question that came to my mind.

If this is an "official Apple extension", then would it be
reasonable to have a setting in /etc/hostconfig which controls
whether OpenAFS is started up?  For instance, after install I
changed /System/Library/StartupItems/OpenAFS/OpenAFS,
such that after

    if [ "${NETWORKUP}" = "-NO-" ]; then exit; fi

I added:
    if [ "${AFSCLIENT}" != "-YES-" ]; then exit; fi

This way, I have to add the line
    AFSCLIENT=-YES-
to /etc/hostconfig.  And then, if I need to disable OpenAFS
for some reason (such as checking if it was the culprit for
music CD problems), all I have to do is edit that file to
change -YES- to -NO-.

It probably wouldn't be appropriate for random third-party
products to add lines to /etc/hostconfig, but IF it's going
to be an official Apple extension, well then...

-- 
Garance Alistair Drosehn            =   gad@eclipse.acs.rpi.edu
Senior Systems Programmer           or  gad@freebsd.org
Rensselaer Polytechnic Institute    or  drosih@rpi.edu