message -d `pfmt -s nostd -g ${PKGMSG}:8 "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}
}
# main()
UPINSTALL=/etc/conf.sav
UPGRADE_STORE=/etc/inst/save.user
UPGFILE=$UPGRADE_STORE/${PKGINST}.env
# If $UPGFILE exists, dot it in. This is where NREG always is
# whether or not the request script was run.
[ -f $UPGFILE ] && . $UPGFILE
FAILURE=1 # fatal error
CONFDIR=/etc/conf
CONFBIN=${CONFDIR}/bin
NOTOOLS=`pfmt -s error -g ${PKGMSG}:15 " The Installable Driver feature has been removed. The %s cannot be installed." ${NAME} 2>&1`
# but do it only if no other pkgs in the set are being installed
# XXX ${CONFBIN}/idbuild 2>>${TMP}
# XXX if
# XXX [ "$?" -ne "0" ]
# XXX then
# XXX pfmt -s nostd -g ${PKGMSG}:14 "An error has occurred during the rebuild of the UNIX System.\nErrors have been written to the file %s\n" ${TMP} 2>&1
# XXX exit ${FAILURE}
# XXX fi
removef ${PKGINST} ${VOLATILES} >/dev/null 2>&1
removef ${PKGINST} /tmp/nsu >/dev/null 2>&1
removef -f ${PKGINST} >/dev/null 2>&1
errflag=`expr ${errflag:=0} + 10`
############# Begin UPGRADE AND OVERLAY #######################