Writing custom installation scripts
A driver installation shell script should do the following:
-
Check to see if the Link Kit is present. This is done by
running the
fixperm(ADM)
command.
If the Link Kit is not installed, prompt the customer to determine
if it should be installed and if the reply is positive, install it.
If the Link Kit is loaded after fixperm reports that
the Link Kit is partially installed, there is a possibility that
important files will be overwritten.
To discover which files are missing, run
fixperm, and then use custom
to install individual files.
-
Add the new driver entry points to the kernel using
idinstall(ADM).
-
Change directory to /etc/conf/cf.d, and then run link_unix
to link the kernel. link_unix runs idbuild which, in
turn, runs a number of other commands such as idmknod that actually
build the kernel.
© 2005 The SCO Group, Inc. All rights reserved.