if [ -f ${1}_atup.Dr ]; then mv ${1}_atup.Dr Driver_atup.o; fi
if [ -f ${1}_mp.Dr ]; then mv ${1}_mp.Dr Driver_mp.o; fi
if
[ -f ${1}.Sp ]
then
mv ${1}.Sp Space.c
fi
if
[ -f ${1}.Ma ]
then
grep -v "^[\*#]ident" ${1}.Ma > Master
rm -rf ${1}.Ma
fi
if
[ -f ${1}.Sy ]
then
grep -v "^[\*#]ident" ${1}.Sy |
sed "${SEDCMD1}" > System
rm -rf ${1}.Sy
fi
if
[ -f ${1}.Mf ]
then
grep -v "^[\*#]ident" ${1}.Mf > Mfsys
rm -rf ${1}.Mf
fi
if
[ -f ${1}.Sf ]
then
grep -v "^[\*#]ident" ${1}.Sf |
sed "${SEDCMD2}" > Sfsys
rm -rf ${1}.Sf
fi
if
[ -f ${1}.No ]
then
grep -v "^[\*#]ident" ${1}.No > Node
rm -rf ${1}.No
fi
if
[ -f ${1}.Rc ]
then
grep -v "^[\*#]ident" ${1}.Rc > Rc
rm -rf ${1}.Rc
fi
if
[ -f ${1}.Mt ]
then
grep -v "^[\*#]ident" ${1}.Mt > Mtune
rm -rf ${1}.Mtune
fi
#
# do not use the -P option since we want the files to remain
# owned by NSU. (the 'rc.d' file will be removed by hand
#
${CONFBIN}/idinstall -u ${2} ${1} > ${ERR} 2>&1
RET=$?
rm -rf ${IDCOMPS}
if [ ${RET} != 0 ]
then
message -d `pfmt -s nostd -g ${PKGMSG}:51 "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}
}
#
# all work done in the acp temp directory, (may not have one if called from
# NSU)
#
TMPDIR=/tmp/pt
if [ ! -d $TMPDIR ]
then
mkdir $TMPDIR
fi
cd $TMPDIR
#
# If security is installed already set the default security info.
# IF it isn't installed the 'ES' package will set up some security defaults