.CD "sunload \(en load some or all standard binary files from SunOS [SMX]"
.SX "sunload\fR [\fIcommand-name ...]"
.PP
\fBNote:\fR Before
you can use \fIsunload\fR you have to change the \fIsunload\fR script within 
smx so that \fIsunosdir\fR gives the full (SunOS) pathname of the
smx \fIsrc/commands\fR directory.

In PC-Minix, binaries for the standard commands are installed directly
into \fI/bin\fR and \fI/usr/bin\fR by the relevant Makefiles.  This approach
is not possible in smx because the Makefiles (which are stored under SunOS)
do not have direct access to the smx files.  The 
.I sunload
script has been written to facilitate loading of new versions of
standard binaries.  Effectively, all of the "install" targets have been removed
from the Makefiles in the various "commands" subdirectories, and have been
collected together to create the 
.I sunload
script.  The script takes care of transferring binaries (and any supporting
files) from SunOS using \fIsunread\fR, creating additional hard links
where needed, and setting the appropriate permissions.  Because \fIsunload\fR
takes care of all of these things for you, it should always be used to load
standard binaries in preference to using \fIsunread\fR directly.
\fISunload\fR 
will only install files correctly if it is run by the super-user.

.I Sunload
creates files in \fI./bin\fR, \fI./usr/bin\fR and \fI./usr/lib\fR.
If you want to update
the current \fI/bin\fR, \fI/usr/bin\fR and \fI/usr/lib\fR then 
run \fIsunload\fR from \fI/\fR.  If no 
\fIcommand-name\fRs are given on the command line, then all standard binaries
(and supporting files) are installed.  If one or more \fIcommand-name\fRs
are given, then only files related to the specified commands are installed.

The \fIcommand-name\fRs recognised are basically the names of the commands
in the \fIsrc/commands/simple\fR directory, and the names of the other 
sub-directories of \fIsrc/commands\fR.  Where a binary is installed under
multiple names, only one name is recognised by \fIsunload\fR.  For example,
the \fIpasswd\fR command has additional hard links called \fIchsh\fR and 
\fIchfn\fR. \fISunload\fR recognises only the command name \fIpasswd\fR.
The script itself is the definitive source of information as to the 
set of command names recognised.
