message -d `pfmt -s nostd -g ${PKGMSG}:1 "The installation cannot be completed due to an error in the driver installation during the installation of the %s module of the %s. The file %s contains the errors." ${1} ${NAME} ${ERR}" 2>&1`
exit ${FAILURE}
fi
rm -rf ${ERR}
}
CONFDIR=/etc/conf
CONFBIN=${CONFDIR}/bin
FAILURE=1 #exit code if anything goes wrong
### Install drivers
### Any modules installed in /tmp should be added to
### the removef loop below.
for MODULE in fp lockstat prf fc mirrorcon
do
cd /tmp/${MODULE}
do_install ${MODULE}
done
# rebuild for changes to take effect
TMP=/tmp/cmds.$$
/etc/conf/bin/idbuild
##########
# moved from pkg.lp/postinstall
if [ ! -z "`echo ${CLASSES} | grep post`" ]
then
ETCLP=/etc/lp
USRSBIN=/usr/sbin
USRLIB=/usr/lib
LPADMIN=${USRSBIN}/lpadmin
LPFILTER=${USRSBIN}/lpfilter
LPSCHED=${USRLIB}/lp/lpsched
LPSHUT=${USRSBIN}/lpshut
ACCEPT=${USRSBIN}/accept
REJECT=${USRSBIN}/reject
LPSTAT=${USRBIN}/lpstat
DUMPOLP=${USRSBIN}/dumpolp
ENABLE=${USRBIN}/enable
DISABLE=${USRBIN}/disable
TMP=/tmp/cmds.err
##########
#
# ``Compile'' the filter table entries. This is a tad
# complicated, because we want to preserve the original
# filter.table and filter.table.i entries.
#
# Note: We do this whether or not we are installing any particular
# sub-package (e.g. PostScript), so that it gets done in one place.
# The OAM installation process won't install a class not listed
# in the $CLASSES variable, so we won't be compiling anything