home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1999 March B
/
SCO_CASTOR4RRT.iso
/
nuc
/
install
/
postinstall
< prev
next >
Wrap
Text File
|
1998-08-19
|
3KB
|
117 lines
#!/sbin/sh
#ident "@(#)postinstall 1.6"
SCRIPTS=/usr/sbin/pkginst
ERR=/tmp/nuc.err
CWD=/tmp/novell
GREP="/usr/bin/grep"
ADMINUSER="/usr/bin/adminuser"
PFMT1="The installation cannot be completed due to an error in the driver installation. The file %s contains the errors.\n"
PKGMSG=uvlnuc
LOCALE=${LC_ALL:-${LC_MESSAGES:-${LANG:-"C"}}}
if [ ! -f /usr/lib/locale/${LOCALE}/LC_MESSAGES/${PKGMSG} ]; then
if [ -f ${REQDIR}/inst/locale/${LOCALE}/${PKGMSG} -a \
-d /usr/lib/locale/${LOCALE}/LC_MESSAGES ]; then
cp ${REQDIR}/inst/locale/${LOCALE}/${PKGMSG} \
/usr/lib/locale/${LOCALE}/LC_MESSAGES
fi
fi
if [ ! -d ${CWD} ]
then
pfmt -s error -g ${PKGMSG}:364 "No /tmp/novell.\n"
exit 1
fi
cd ${CWD}
for i in `ls`
do
cd ${i}
/etc/conf/bin/idinstall -k -P nuc -u ${i} > ${ERR} 2>&1
if [ $? -ne 0 ]
then
/etc/conf/bin/idinstall -k -P nuc -a ${i} > ${ERR} 2>&1
if [ $? -ne 0 ]
then
message `pfmt -s error -g ${PKGMSG}:365 "$PFMT1" "${ERR}"`
exit 1
fi
fi
cd ${CWD}
done
rm -f ${ERR}
# Set Single Login default to on.
/usr/sbin/nwcm -q -s "netware_single_login=on"
chmod 444 /etc/.slogin >/dev/null 2>&1
###################################################
cd /
/etc/conf/bin/idbuild
while read a
do
removef ${PKGINST} ${a}
done <<EOT
/tmp/novell/nuc/System /tmp/novell/nuc/Space.c /tmp/novell/nuc/Node /tmp/novell/nuc/Master /tmp/novell/nuc/Driver_atup.o
/tmp/novell/nuc/Autotune /tmp/novell/nuc/Driver_mp.o /tmp/novell/nuc/Mtune /tmp/novell/nuc/Dtune
/tmp/novell/nucfs/System /tmp/novell/nucfs/Space.c /tmp/novell/nucfs/Master /tmp/novell/nucfs/Driver_atup.o /tmp/novell/nucfs/Driver_mp.o
/tmp/novell/nucam/System /tmp/novell/nucam/Space.c /tmp/novell/nucam/Master /tmp/novell/nucam/Driver_atup.o
/tmp/novell/nucam/Driver_mp.o /tmp/novell/nucam/Mtune /tmp/novell/nucam/Dtune
/tmp/novell/NWam/System /tmp/novell/NWam/Node /tmp/novell/NWam/Master /tmp/novell/NWam/Driver_atup.o /tmp/novell/NWam/Driver_mp.o
/tmp/novell/climux/System /tmp/novell/climux/Node /tmp/novell/climux/Master /tmp/novell/climux/Driver_atup.o /tmp/novell/climux/Driver_mp.o
/tmp /tmp/novell /tmp/novell/climux /tmp/novell/nuc /tmp/novell/nucam /tmp/novell/nucfs /tmp/novell/NWam
EOT
# modify netconfig to add the nuc name resolver
sed -e 's/^\(ipx[ \t][ \t]*.*[ \t][ \t]*\)\/usr\/lib\/novell_nwnet.so/\1\/usr\/lib\/novell.so/' \
-e 's/^\(spx[ \t][ \t]*.*[ \t][ \t]*\)\/usr\/lib\/novell_nwnet.so/\1\/usr\/lib\/novell.so/' \
/etc/netconfig >/tmp/nucnetconfig
cp /tmp/nucnetconfig /etc/netconfig
removef -f ${PKGINST}
cd /
rm -fr ${CWD}
. ${SCRIPTS}/updebug
[ "$UPDEBUG" = "YES" ] && set -x
if [ "$PKGINSTALL_TYPE" != "NEWINSTALL" ]
then
VER=`cat /etc/inst/save.user/${PKGINST}.ver 2>/dev/null`
if [ "x${VER}" = "x2.0" ]
then
for RFILE in `cat /var/sadm/pkg/${PKGINST}/install/rem.files`
do
rm -rf ${RFILE}
done
removef ${PKGINST} - < /var/sadm/pkg/${PKGINST}/install/rem.files >/dev/null 2>&1
removef -f ${PKGINST}
fi
fi
#
# SCOADMIN
#
/usr/bin/scoadmin -p NetWare -f -c /usr/lib/scoadmin/NetWare/NetWare_Settings.obj
#/usr/bin/scoadmin -p NetWare -f -c /usr/lib/scoadmin/NetWare/App_Sharing.obj
#/usr/bin/scoadmin -p NetWare -f -c /usr/lib/scoadmin/NetWare/Launch_Application.obj
#/usr/bin/scoadmin -p NetWare -f -c /usr/lib/scoadmin/NetWare/Remote_Apps.obj
exit 10