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`
cleanup_exit ${FAILURE}
fi
#rm -rf ${ERR}
}
turnoff () {
cd /etc/conf/sdevice.d
for i in $*
do
if [ -f $i ]
then
ed $i << END > /dev/null 2>&1
1,\$s/ Y / N /
w
w
q
END
fi
done
}
turnon () {
cd /etc/conf/sdevice.d
for i in $*
do
if [ -f $i ]
then
ed $i << END > /dev/null 2>&1
1,\$s/ N / Y /
w
w
q
END
fi
done
}
#main
FAILURE=1 # fatal error
CONFDIR=/etc/conf
CONFBIN=${CONFDIR}/bin
NOTOOLS=`pfmt -s error -g ${PKGMSG}:2 " The Installable Driver feature has been removed. The %s cannot be installed." ${NAME} 2>&1`
SEDCMD1="s/[ ]N[ ]/ Y /"
SEDCMD2="s/[ ]N/ Y/"
trap '' 1 2 3 5 15
rm -f $TMP > /dev/null 2>&1
turnon intmap
############# Begin UPGRADE AND OVERLAY #######################
# If $UPGFILE exists, dot it in. This is where the value for
# $NSCO is whether or not the request script was run.
UPGRADE_STORE=/etc/inst/save.user
UPGFILE=${UPGRADE_STORE}/${PKGINST}.env
[ -f $UPGFILE ] && . $UPGFILE
[ "$UPDEBUG" = YES ] && goany
############# End UPGRADE AND OVERLAY #######################
# sco_pt.install uses idtune, since may not have reboot since NSU