1 # Copyright 2000, International Business Machines Corporation and others.
4 # This software has been released under the terms of the IBM Public
5 # License. For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
10 # An InstallGuide for AFS startup scripts
11 # For Sun systems running SunOS 4.x
15 my($nfsext, $othernfsext, $rcfile);
16 $rcfile = "/etc/rc.afs";
19 # Start an AFS RC file
20 if ($Configuration{"NFSEXTENSIONS"}) {
22 $othernfsext=".nonfs"; }
28 &VPrint("Creating AFS startup script");
29 &DisplaceFile($rcfile);
30 $rc = open(RC, "> $rcfile");
31 &ErrorMsg("Could not write to file", $rcfile) if (!$rc);
36 # Choose one of the following depending on how to load AFS into the kernel
40 # Choose one of the following depending on whether or not system uses NFS
44 if [ "\$loader" -eq "modload" ]; then
45 library="libafs${NFS}.o"
46 program="/usr/etc/modload"
49 library="libafs${NFS}.a"
54 if [ -d /usr/vice/etc/\$loader ]; then
55 echo 'Invoking \$loader kernel loader...'>/dev/console
56 cd /usr/vice/etc/\$loader
57 if [ -f "\$library" ]; then
58 echo "Loading AFS" > /dev/console
59 \$program \$options \$library 1> /dev/console 2>&1
61 echo "Error loading AFS" > /dev/console
64 echo "Cannot load AFS - no kernel library object" > /dev/console
71 &Chmod(0744, $rcfile);
73 # Append the generic RC file
74 &ReadInstallGuide("$InstallGuideDir/GENERIC/rc");
77 &Print("AFS startup script created as $rcfile");