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
8 # An InstallGuide for dynamic kernel loaded libraries
9 # For IBM RS/6000 systems running AIX 4.x
13 my($useiauth,$afsext,$export, $line, $a,$b,$c);
15 &CreateDir("/usr/vice/etc/dkload");
18 if ($Configuration{"NFSEXTENSIONS"}) {
19 # Determine if this AIX system uses the iauth system
24 open(LPP, "/bin/lslpp -L |");
25 while ($line = <LPP>) {
26 next unless ($line =~ /bos.rte\s/);
27 $line =~ /bos.rte\s+(\d)\.(\d)\.(\d)/;
28 ($a,$b,$c) = ($1,$2,$3);
29 $useiauth = 1 if ($a == 4 && $b == 1 && $c >= 5);
30 $useiauth = 1 if ($a == 4 && $b == 2 && $c >= 1);
31 $useiauth = 1 if ($a == 4 && $b >= 3);
42 # Copy NFS ready kernel extensions into place
43 &Copy("root.client/usr/vice/etc/dkload/cfgafs", "/usr/vice/etc/dkload");
44 &Copy("root.client/usr/vice/etc/dkload/cfgexport", "/usr/vice/etc/dkload");
45 &Copy("root.client/usr/vice/etc/dkload/afs.ext.$afsext",
46 "/usr/vice/etc/dkload");
47 &Copy("root.client/usr/vice/etc/dkload/export.ext$export",
48 "/usr/vice/etc/dkload"); }
50 # Copy non NFS ready kernel extensions into place
51 &Copy("root.client/usr/vice/etc/dkload/afs.ext", "/usr/vice/etc/dkload");
52 &Copy("root.client/usr/vice/etc/dkload/cfgafs", "/usr/vice/etc/dkload");
53 &Copy("root.client/usr/vice/etc/dkload/cfgexport", "/usr/vice/etc/dkload");
54 &Copy("root.client/usr/vice/etc/dkload/export.ext.nonfs",
55 "/usr/vice/etc/dkload"); }
57 &Copy("root.client/usr/vice/etc/afsd", "/usr/vice/etc");
58 &Chmod(0744, "/usr/vice/etc/afsd");
59 &Copy("bin/fs", "/usr/vice/etc/fs");
62 $Patch::Verbose if ($InstallVerbose);
64 &Patch::FileOpen($File);
66 $Search = << "xxENDxx";
67 nfs 2 /sbin/helpers/nfsmnthelp none remote
74 if (!&Patch::Patch($File, [[0, "Insert", $Search, $New]])) {
75 &ErrorMsg("Did not succeed in patching $File");