Class action scripts are executed as uid=root and gid=other.
If a package spans more than one volume, the class action script will be
executed once for each volume that contains at least one file belonging to the
Consequently, each script must be
This means that executing a script any number of times
with the same input must produce the same results as executing the script only
The installation service relies upon this condition being met.
The script is executed only if there are files in the given class existing
on the current volume.
creates a list of
all objects listed in the
that belong to the class.
As a result,
a class action script can only act upon pathnames defined in the
and belonging to a particular class.
A class action script should never add, remove, or modify a pathname or system
attribute that does not
appear in the list generated by
unless by use of the
(See the manual pages for details on
these two commands and the
for examples of them in use.)
When the class action script executes for the last time (the
input pathname is the last path on the last volume containing a file of this
it is executed with the keyword argument ENDOFCLASS.
This flag allows you to include post-processing actions into your script.